]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
Fixed segfault in rpc.mountd
authorSteve Dickson <steved@redhat.com>
Wed, 26 Jan 2011 12:49:19 +0000 (07:49 -0500)
committerSteve Dickson <steved@redhat.com>
Wed, 26 Jan 2011 12:49:19 +0000 (07:49 -0500)
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 <steved@redhat.com>
utils/mountd/rmtab.c

index d3392968ab6b4c18b3422f9f7edf6c693b17d9c0..527377f8cd408c3e5899ab6040e295e76a69ea78 100644 (file)
@@ -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");