]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
segfault fix
authorneilbrown <neilbrown>
Mon, 16 Jun 2003 01:16:40 +0000 (01:16 +0000)
committerneilbrown <neilbrown>
Mon, 16 Jun 2003 01:16:40 +0000 (01:16 +0000)
ChangeLog
utils/mountd/cache.c

index d13952a5a9475f176204b503e976259408219a6e..9be3e99d898a828b00f1218ec4c31d9153a8c970 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2003-06-16  "J. Bruce Fields" <bfields@fieldses.org>
+
+       * utils/mountd/cache.c(nfsd_fh): don't export the export_ent
+       if it wasn't found.
+
 2003-06-16  NeilBrown  <neilb@cse.unsw.edu.au>
 
        * debian/nfs-kernel-server.init,etc/nodist/nfs-server,
index 9d7d20d99e9c1a4cc651d7256fcde109f759210a..3402d12b1e6468ebeaeb51c1fffa3fbc462daba8 100644 (file)
@@ -189,7 +189,8 @@ void nfsd_fh(FILE *f)
                goto out;
        }
 
-       cache_export_ent(dom, found);
+       if (found)
+               cache_export_ent(dom, found);
 
        qword_print(f, dom);
        qword_printint(f, fsidtype);