diff options
author | Steve Dickson <steved@redhat.com> | 2011-01-26 07:49:19 -0500 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2011-01-26 07:49:19 -0500 |
commit | 730f6986f86873513fa021a450eb55ccd0f2fbff (patch) | |
tree | e307b04cd640c39832755928f40926a9407ea97b /utils | |
parent | 544ed73d5ab27c1390833d5cf93b9585c151667d (diff) | |
download | nfs-utils-730f6986f86873513fa021a450eb55ccd0f2fbff.tar.gz nfs-utils-730f6986f86873513fa021a450eb55ccd0f2fbff.tar.xz nfs-utils-730f6986f86873513fa021a450eb55ccd0f2fbff.zip |
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 <steved@redhat.com>
Diffstat (limited to 'utils')
-rw-r--r-- | utils/mountd/rmtab.c | 1 |
1 files changed, 1 insertions, 0 deletions
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"); |