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 d13952a..9be3e99 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 9d7d20d..3402d12 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);