summaryrefslogtreecommitdiffstats
path: root/usr.sbin/rpc.statd
diff options
context:
space:
mode:
authortruckman <truckman@FreeBSD.org>2007-08-05 16:33:06 +0000
committertruckman <truckman@FreeBSD.org>2007-08-05 16:33:06 +0000
commit0646d6debe5d3260543b0f01e7260e97e770741f (patch)
tree74b356716367db604af0cf284ce6b1c2a214bc36 /usr.sbin/rpc.statd
parent3793d89229b35eb423617b68199d0d05bced154b (diff)
downloadFreeBSD-src-0646d6debe5d3260543b0f01e7260e97e770741f.zip
FreeBSD-src-0646d6debe5d3260543b0f01e7260e97e770741f.tar.gz
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
Diffstat (limited to 'usr.sbin/rpc.statd')
-rw-r--r--usr.sbin/rpc.statd/statd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/rpc.statd/statd.c b/usr.sbin/rpc.statd/statd.c
index e827826..4348865 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. */
OpenPOWER on IntegriCloud