summaryrefslogtreecommitdiffstats
path: root/lib/libc/net/rcmd.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1996-08-31 17:56:52 +0000
committerderaadt <deraadt@openbsd.org>1996-08-31 17:56:52 +0000
commit304caed9a1902708eeae458c515a38f07fc680e9 (patch)
treea5912b574d1a0f209e035b1c871a2727d4fe9084 /lib/libc/net/rcmd.c
parentduh (diff)
downloadwireguard-openbsd-304caed9a1902708eeae458c515a38f07fc680e9.tar.xz
wireguard-openbsd-304caed9a1902708eeae458c515a38f07fc680e9.zip
check right variable
Diffstat (limited to 'lib/libc/net/rcmd.c')
-rw-r--r--lib/libc/net/rcmd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/net/rcmd.c b/lib/libc/net/rcmd.c
index 5c3dd78a8f2..62dde645890 100644
--- a/lib/libc/net/rcmd.c
+++ b/lib/libc/net/rcmd.c
@@ -32,7 +32,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char *rcsid = "$OpenBSD: rcmd.c,v 1.13 1996/08/30 16:32:08 deraadt Exp $";
+static char *rcsid = "$OpenBSD: rcmd.c,v 1.14 1996/08/31 17:56:52 deraadt Exp $";
#endif /* LIBC_SCCS and not lint */
#include <sys/param.h>
@@ -248,7 +248,7 @@ rresvport(alport)
if (s < 0)
return (-1);
sin.sin_port = htons((u_short)*alport);
- if (alport != IPPORT_RESERVED - 1) {
+ if (*alport != IPPORT_RESERVED - 1) {
if (bind(s, (struct sockaddr *)&sin, sizeof(sin)) >= 0)
return (s);
if (errno != EADDRINUSE) {