From f61a23adcc8e033780415050ab80169af5c510ff Mon Sep 17 00:00:00 2001 From: Don Lewis Date: Sun, 5 Aug 2007 16:33:06 +0000 Subject: [PATCH] The call to init_file() needs to be moved outside the loop in statd.c, otherwise mmap() gets called multiple times, which eventually fails due to address space exhaustion on i386. Approved by: re (kensmith) MFC after: 1 week --- usr.sbin/rpc.statd/statd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.sbin/rpc.statd/statd.c b/usr.sbin/rpc.statd/statd.c index e827826125f9..4348865ea891 100644 --- a/usr.sbin/rpc.statd/statd.c +++ b/usr.sbin/rpc.statd/statd.c @@ -183,9 +183,9 @@ main(int argc, char **argv) transports[i]); /* NOTREACHED */ } - init_file("/var/db/statd.status"); freenetconfigent(nconf); } + init_file("/var/db/statd.status"); /* Note that it is NOT sensible to run this program from inetd - the */ /* protocol assumes that it will run immediately at boot time. */