diff options
author | 1999-12-17 19:08:52 +0000 | |
---|---|---|
committer | 1999-12-17 19:08:52 +0000 | |
commit | a6a536b7e74aa74657430be1cbe2592a36f672e9 (patch) | |
tree | eb4ebd4f78614e8e1ba054bff3529934372bca1e | |
parent | fix inclusion problems (diff) | |
download | wireguard-openbsd-a6a536b7e74aa74657430be1cbe2592a36f672e9.tar.xz wireguard-openbsd-a6a536b7e74aa74657430be1cbe2592a36f672e9.zip |
oops
-rw-r--r-- | lib/libc/net/rresvport.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libc/net/rresvport.c b/lib/libc/net/rresvport.c index 97a901ae0c8..572903bec5a 100644 --- a/lib/libc/net/rresvport.c +++ b/lib/libc/net/rresvport.c @@ -34,7 +34,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char *rcsid = "$OpenBSD: rresvport.c,v 1.1 1999/12/16 21:30:34 deraadt Exp $"; +static char *rcsid = "$OpenBSD: rresvport.c,v 1.2 1999/12/17 19:08:52 deraadt Exp $"; #endif /* LIBC_SCCS and not lint */ #include <sys/param.h> @@ -82,9 +82,11 @@ rresvport_af(alport, af) case AF_INET: sa->sa_len = sizeof(struct sockaddr_in); portp = &((struct sockaddr_in *)&sa)->sin_port; + break; case AF_INET6: sa->sa_len = sizeof(struct sockaddr_in6); portp = &((struct sockaddr_in6 *)&sa)->sin6_port; + break; default: return (-1); } |