summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorJason Downs <downsj@cvs.openbsd.org>1996-07-30 16:25:48 +0000
committerJason Downs <downsj@cvs.openbsd.org>1996-07-30 16:25:48 +0000
commit08f857a0f80b60f207fb960261355645878cc369 (patch)
treed7056a141148e7d084b3e54381d0859f041e4cc8 /lib/libc
parent2a432a25509d64a1ba08a59679dd20a4116b6c7f (diff)
errno restore was reversed.
Diffstat (limited to 'lib/libc')
-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);
}
}