From 1ed3b7ea14cf28ed925c470b77659941cdcd8b54 Mon Sep 17 00:00:00 2001 From: Henning Brauer Date: Sun, 22 May 2005 21:19:40 +0000 Subject: misisng endpwent(), spotted by Daniel Cid --- usr.sbin/portmap/portmap.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'usr.sbin/portmap/portmap.c') 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."); -- cgit v1.2.3