summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/libc/net/rresvport.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/libc/net/rresvport.c b/src/lib/libc/net/rresvport.c
index 572903bec5..e544424cee 100644
--- a/src/lib/libc/net/rresvport.c
+++ b/src/lib/libc/net/rresvport.c
@@ -34,7 +34,7 @@
34 */ 34 */
35 35
36#if defined(LIBC_SCCS) && !defined(lint) 36#if defined(LIBC_SCCS) && !defined(lint)
37static char *rcsid = "$OpenBSD: rresvport.c,v 1.2 1999/12/17 19:08:52 deraadt Exp $"; 37static char *rcsid = "$OpenBSD: rresvport.c,v 1.3 1999/12/17 19:20:30 deraadt Exp $";
38#endif /* LIBC_SCCS and not lint */ 38#endif /* LIBC_SCCS and not lint */
39 39
40#include <sys/param.h> 40#include <sys/param.h>
@@ -88,6 +88,7 @@ rresvport_af(alport, af)
88 portp = &((struct sockaddr_in6 *)&sa)->sin6_port; 88 portp = &((struct sockaddr_in6 *)&sa)->sin6_port;
89 break; 89 break;
90 default: 90 default:
91 errno = EPFNOSUPPORT;
91 return (-1); 92 return (-1);
92 } 93 }
93 sa->sa_family = af; 94 sa->sa_family = af;