diff options
author | 1999-12-17 19:20:30 +0000 | |
---|---|---|
committer | 1999-12-17 19:20:30 +0000 | |
commit | 21ae8544f49dafa35a64290c2e9ace53050a0a7f (patch) | |
tree | 5c30535b899bd5dae6a39c46688e874600a14877 | |
parent | oops (diff) | |
download | wireguard-openbsd-21ae8544f49dafa35a64290c2e9ace53050a0a7f.tar.xz wireguard-openbsd-21ae8544f49dafa35a64290c2e9ace53050a0a7f.zip |
nice error return; markus
-rw-r--r-- | lib/libc/net/rresvport.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/net/rresvport.c b/lib/libc/net/rresvport.c index 572903bec5a..e544424cee4 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.2 1999/12/17 19:08:52 deraadt Exp $"; +static char *rcsid = "$OpenBSD: rresvport.c,v 1.3 1999/12/17 19:20:30 deraadt Exp $"; #endif /* LIBC_SCCS and not lint */ #include <sys/param.h> @@ -88,6 +88,7 @@ rresvport_af(alport, af) portp = &((struct sockaddr_in6 *)&sa)->sin6_port; break; default: + errno = EPFNOSUPPORT; return (-1); } sa->sa_family = af; |