summaryrefslogtreecommitdiff
path: root/usr/src/lib/libshare/common/plugin.c
diff options
context:
space:
mode:
authordougm <none@none>2008-03-18 14:23:07 -0700
committerdougm <none@none>2008-03-18 14:23:07 -0700
commit687915e946710e354e302fa654bf53bf38b57cc6 (patch)
treeff57522d4451be647f2b6c63cfd2e7f9e3178aec /usr/src/lib/libshare/common/plugin.c
parent5f6d439ce56ae78adffd6d53233e74924f5962ba (diff)
downloadillumos-joyent-687915e946710e354e302fa654bf53bf38b57cc6.tar.gz
6604618 sharemgr can validate options against NULL optionset, have bogus result
Diffstat (limited to 'usr/src/lib/libshare/common/plugin.c')
-rw-r--r--usr/src/lib/libshare/common/plugin.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr/src/lib/libshare/common/plugin.c b/usr/src/lib/libshare/common/plugin.c
index fea981cce4..c2082b8a1a 100644
--- a/usr/src/lib/libshare/common/plugin.c
+++ b/usr/src/lib/libshare/common/plugin.c
@@ -305,19 +305,20 @@ sa_proto_unshare_resource(char *proto, sa_resource_t resource)
}
/*
- * sa_proto_valid_prop(proto, prop, opt)
+ * sa_proto_valid_prop(handle, proto, prop, opt)
*
* Check to see if the specified prop is valid for this protocol.
*/
int
-sa_proto_valid_prop(char *proto, sa_property_t prop, sa_optionset_t opt)
+sa_proto_valid_prop(sa_handle_t handle, char *proto, sa_property_t prop,
+ sa_optionset_t opt)
{
struct sa_plugin_ops *ops = find_protocol(proto);
int ret = 0;
if (ops != NULL && ops->sa_valid_prop != NULL)
- ret = ops->sa_valid_prop(prop, opt);
+ ret = ops->sa_valid_prop(handle, prop, opt);
return (ret);
}