X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=utils%2Fmountd%2Fv4root.c;fp=utils%2Fmountd%2Fv4root.c;h=81f813bde067777d4b357c86a2ea30a7d1bf0eee;hp=c33a5a9eb79d690580e81825de197d799d214ded;hb=cd4f4d13848bd64f98290ef67ef8572d998d3041;hpb=fa14db707efd309cd567648a4a0ffdbf06f5e2c9 diff --git a/utils/mountd/v4root.c b/utils/mountd/v4root.c index c33a5a9..81f813b 100644 --- a/utils/mountd/v4root.c +++ b/utils/mountd/v4root.c @@ -83,7 +83,7 @@ v4root_create(char *path, nfs_export *export) struct exportent *curexp = &export->m_export; dupexportent(&eep, &pseudo_root.m_export); - eep.e_hostname = strdup(curexp->e_hostname); + eep.e_hostname = curexp->e_hostname; strncpy(eep.e_path, path, sizeof(eep.e_path)); if (strcmp(path, "/") != 0) eep.e_flags &= ~NFSEXP_FSID;