From 460ef2f898148fbc858cffe9d2ac12070131d5dd Mon Sep 17 00:00:00 2001 From: neilbrown Date: Mon, 16 Jun 2003 01:16:40 +0000 Subject: [PATCH] segfault fix --- ChangeLog | 5 +++++ utils/mountd/cache.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index d13952a..9be3e99 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2003-06-16 "J. Bruce Fields" + + * utils/mountd/cache.c(nfsd_fh): don't export the export_ent + if it wasn't found. + 2003-06-16 NeilBrown * debian/nfs-kernel-server.init,etc/nodist/nfs-server, diff --git a/utils/mountd/cache.c b/utils/mountd/cache.c index 9d7d20d..3402d12 100644 --- a/utils/mountd/cache.c +++ b/utils/mountd/cache.c @@ -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); -- 2.39.5