summaryrefslogtreecommitdiff
path: root/usr/src
diff options
context:
space:
mode:
authorRichard Lowe <richlowe@richlowe.net>2011-05-16 06:23:38 +0100
committerRichard Lowe <richlowe@richlowe.net>2011-05-16 06:23:38 +0100
commit23f76dc290ca84b3df56bf58be0a4b8e3a7e38ab (patch)
treedad3758268ec6232194589738339c4d6ddb7cba5 /usr/src
parenta4b5e52b9bb5ef6f924a2454830eac72992bf8c5 (diff)
downloadillumos-gate-23f76dc290ca84b3df56bf58be0a4b8e3a7e38ab.tar.gz
1550 SMF manifest find should return -1 on allocation failure
Reviewed by: Joshua M. Clulow <josh@sysmgr.org> Reviewed by: Alexander Eremin <alexander.eremin@nexenta.com> Reviewed by: Igor Kozhukhov <ikozhukhov@gmail.com> Approved by: Garrett D'Amore <garrett@nexenta.com>
Diffstat (limited to 'usr/src')
-rw-r--r--usr/src/cmd/svc/common/manifest_find.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/src/cmd/svc/common/manifest_find.c b/usr/src/cmd/svc/common/manifest_find.c
index 8933fb5807..900717c33d 100644
--- a/usr/src/cmd/svc/common/manifest_find.c
+++ b/usr/src/cmd/svc/common/manifest_find.c
@@ -258,7 +258,7 @@ find_manifests(scf_handle_t *hndl, const char *dir,
tsdp = get_thread_specific_data();
if (tsdp == NULL)
- return (NULL);
+ return (-1);
tsdp->tsd_flags = flags;