diff options
author | truckman <truckman@FreeBSD.org> | 2007-08-05 16:33:06 +0000 |
---|---|---|
committer | truckman <truckman@FreeBSD.org> | 2007-08-05 16:33:06 +0000 |
commit | 0646d6debe5d3260543b0f01e7260e97e770741f (patch) | |
tree | 74b356716367db604af0cf284ce6b1c2a214bc36 /usr.sbin/rpc.statd/statd.c | |
parent | 3793d89229b35eb423617b68199d0d05bced154b (diff) | |
download | FreeBSD-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/statd.c')
-rw-r--r-- | usr.sbin/rpc.statd/statd.c | 2 |
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. */ |