summaryrefslogtreecommitdiff
path: root/usr/src/lib/libshare/common/scfutil.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/lib/libshare/common/scfutil.c')
-rw-r--r--usr/src/lib/libshare/common/scfutil.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr/src/lib/libshare/common/scfutil.c b/usr/src/lib/libshare/common/scfutil.c
index 344d3729bb..1c35d7d151 100644
--- a/usr/src/lib/libshare/common/scfutil.c
+++ b/usr/src/lib/libshare/common/scfutil.c
@@ -790,8 +790,9 @@ sa_share_props_from_pgroup(xmlNodePtr root, scfutilhandle_t *handle,
node = xmlNewChild(resource, NULL,
(xmlChar *)"optionset", NULL);
} else {
- /* this shouldn't happen */
+ /* This shouldn't happen. */
ret = SA_SYSTEM_ERR;
+ goto out;
}
} else {
/*