diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2005-05-22 21:19:40 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2005-05-22 21:19:40 +0000 |
commit | 1ed3b7ea14cf28ed925c470b77659941cdcd8b54 (patch) | |
tree | 5b32c81d5de85fefd05c726cd9a86f7b770ac943 /usr.sbin/portmap/portmap.c | |
parent | 42166243fbb7fd8a7a10d91a132e5a9c05f6754c (diff) |
misisng endpwent(), spotted by Daniel Cid <daniel.cid@gmail.com>
Diffstat (limited to 'usr.sbin/portmap/portmap.c')
-rw-r--r-- | usr.sbin/portmap/portmap.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/portmap/portmap.c b/usr.sbin/portmap/portmap.c index 8f295225f5c..9f4506d6362 100644 --- a/usr.sbin/portmap/portmap.c +++ b/usr.sbin/portmap/portmap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: portmap.c,v 1.33 2005/05/03 01:01:15 djm Exp $ */ +/* $OpenBSD: portmap.c,v 1.34 2005/05/22 21:19:39 henning Exp $ */ /*- * Copyright (c) 1996, 1997 Theo de Raadt (OpenBSD). All rights reserved. @@ -40,7 +40,7 @@ char copyright[] = #if 0 static char sccsid[] = "from: @(#)portmap.c 5.4 (Berkeley) 4/19/91"; #else -static char rcsid[] = "$OpenBSD: portmap.c,v 1.33 2005/05/03 01:01:15 djm Exp $"; +static char rcsid[] = "$OpenBSD: portmap.c,v 1.34 2005/05/22 21:19:39 henning Exp $"; #endif #endif /* not lint */ @@ -255,6 +255,7 @@ main(int argc, char *argv[]) exit(1); } } + endpwent(); if (svc_register(xprt, PMAPPROG, PMAPVERS, reg_service, FALSE) == 0) { syslog(LOG_ERR, "svc_register failed."); |