From: Steve Dickson Date: Wed, 26 Jan 2011 12:49:19 +0000 (-0500) Subject: Fixed segfault in rpc.mountd X-Git-Tag: nfs-utils-1-2-4-rc6~7 X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=commitdiff_plain;h=730f6986f86873513fa021a450eb55ccd0f2fbff Fixed segfault in rpc.mountd A unallocated piece of memory, instead of a NULL point, was being used to initialize a ->next point in the mount link list which caused a segfault after a few remote accesses via the showmount command. Signed-off-by: Steve Dickson --- diff --git a/utils/mountd/rmtab.c b/utils/mountd/rmtab.c index d339296..527377f 100644 --- a/utils/mountd/rmtab.c +++ b/utils/mountd/rmtab.c @@ -205,6 +205,7 @@ mountlist_list(void) } if (stb.st_mtime != last_mtime) { mountlist_freeall(mlist); + mlist = NULL; last_mtime = stb.st_mtime; setrmtabent("r");