summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordownsj <downsj@openbsd.org>1996-07-30 16:25:47 +0000
committerdownsj <downsj@openbsd.org>1996-07-30 16:25:47 +0000
commitb74d16db44d974d1614b59bd4e611894535f8f13 (patch)
tree3804b96161d78646858a436a120e7fbc9ed79c5e
parentfix usage message (diff)
downloadwireguard-openbsd-b74d16db44d974d1614b59bd4e611894535f8f13.tar.xz
wireguard-openbsd-b74d16db44d974d1614b59bd4e611894535f8f13.zip
errno restore was reversed.
-rw-r--r--lib/libc/rpc/bindresvport.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/rpc/bindresvport.c b/lib/libc/rpc/bindresvport.c
index d01715ead87..12f8820c4ee 100644
--- a/lib/libc/rpc/bindresvport.c
+++ b/lib/libc/rpc/bindresvport.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bindresvport.c,v 1.6 1996/07/30 10:55:22 deraadt Exp $ */
+/* $OpenBSD: bindresvport.c,v 1.7 1996/07/30 16:25:47 downsj Exp $ */
/* $NetBSD: bindresvport.c,v 1.5 1995/06/03 22:37:19 mycroft Exp $ */
/*
@@ -33,7 +33,7 @@
#if defined(LIBC_SCCS) && !defined(lint)
/*static char *sccsid = "from: @(#)bindresvport.c 1.8 88/02/08 SMI";*/
/*static char *sccsid = "from: @(#)bindresvport.c 2.2 88/07/29 4.0 RPCSRC";*/
-static char *rcsid = "$OpenBSD: bindresvport.c,v 1.6 1996/07/30 10:55:22 deraadt Exp $";
+static char *rcsid = "$OpenBSD: bindresvport.c,v 1.7 1996/07/30 16:25:47 downsj Exp $";
#endif
/*
@@ -102,7 +102,7 @@ bindresvport(sd, sin)
/* Hmm, what did the kernel assign... */
if (getsockname(sd, (struct sockaddr *)sin,
&sinlen) < 0)
- saved_errno = errno;
+ errno = saved_errno;
return (error);
}
}