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>
}
if (stb.st_mtime != last_mtime) {
mountlist_freeall(mlist);
}
if (stb.st_mtime != last_mtime) {
mountlist_freeall(mlist);
last_mtime = stb.st_mtime;
setrmtabent("r");
last_mtime = stb.st_mtime;
setrmtabent("r");