summaryrefslogtreecommitdiff
path: root/usr/src/lib/libshare/nfs/libshare_nfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/lib/libshare/nfs/libshare_nfs.c')
-rw-r--r--usr/src/lib/libshare/nfs/libshare_nfs.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr/src/lib/libshare/nfs/libshare_nfs.c b/usr/src/lib/libshare/nfs/libshare_nfs.c
index b71df49804..8007ab2466 100644
--- a/usr/src/lib/libshare/nfs/libshare_nfs.c
+++ b/usr/src/lib/libshare/nfs/libshare_nfs.c
@@ -1014,7 +1014,8 @@ fill_export_from_optionset(struct exportdata *export, sa_optionset_t optionset)
/* have a syntactic error */
(void) printf(dgettext(TEXT_DOMAIN,
"NFS: unrecognized option %s=%s\n"),
- name, value != NULL ? value : "");
+ name != NULL ? name : "",
+ value != NULL ? value : "");
break;
}
if (name != NULL)
@@ -1841,7 +1842,7 @@ nfs_enable_share(sa_share_t share)
prop != NULL && i < num_secinfo;
prop = sa_get_next_property(prop), i++) {
char *sectype;
- sectype = sa_get_property_attr(prop, "type");
+ sectype = sa_get_property_attr(prop, "type");
/*
* if sectype is NULL, we probably
* have a memory problem and can't get
@@ -3023,6 +3024,7 @@ nfs_minmax_check(int index, int value)
OPT_CMP_GE) {
ret = value >= val ? B_TRUE : B_FALSE;
}
+ sa_free_attr_string(pval);
}
}
}