summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-07-01 00:35:06 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-07-01 00:35:06 +0000
commitcfcc4ee4b1309590de81228d6a071f3ad6f3e1eb (patch)
treefac69f90e79793765546ff873ce0ee075fd1f7f7
parenta336fc772d3775fad763e49fdf627e8d07f5eab3 (diff)
whoops
-rw-r--r--usr.sbin/portmap/portmap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/portmap/portmap.c b/usr.sbin/portmap/portmap.c
index 56a211171a3..8ed64813355 100644
--- a/usr.sbin/portmap/portmap.c
+++ b/usr.sbin/portmap/portmap.c
@@ -40,7 +40,7 @@ char copyright[] =
#ifndef lint
/*static char sccsid[] = "from: @(#)portmap.c 5.4 (Berkeley) 4/19/91";*/
-static char rcsid[] = "$Id: portmap.c,v 1.3 1996/06/29 19:03:50 deraadt Exp $";
+static char rcsid[] = "$Id: portmap.c,v 1.4 1996/07/01 00:35:05 deraadt Exp $";
#endif /* not lint */
/*
@@ -155,7 +155,7 @@ main(argc, argv)
syslog(LOG_ERR, "cannot create udp socket: %m");
exit(1);
}
- setsockopt(lsock, SOL_SOCKET, SO_REUSEADDR, &on, sizeof on);
+ setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, &on, sizeof on);
if (bind(sock, (struct sockaddr *)&addr, len) != 0) {
syslog(LOG_ERR, "cannot bind udp: %m");
exit(1);
@@ -194,7 +194,7 @@ main(argc, argv)
syslog(LOG_ERR, "cannot create tcp socket: %m");
exit(1);
}
- setsockopt(lsock, SOL_SOCKET, SO_REUSEADDR, &on, sizeof on);
+ setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, &on, sizeof on);
if (bind(sock, (struct sockaddr *)&addr, len) != 0) {
syslog(LOG_ERR, "cannot bind udp: %m");
exit(1);