diff options
author | Richard Lowe <richlowe@richlowe.net> | 2011-05-16 06:23:38 +0100 |
---|---|---|
committer | Richard Lowe <richlowe@richlowe.net> | 2011-05-16 06:23:38 +0100 |
commit | 23f76dc290ca84b3df56bf58be0a4b8e3a7e38ab (patch) | |
tree | dad3758268ec6232194589738339c4d6ddb7cba5 /usr/src | |
parent | a4b5e52b9bb5ef6f924a2454830eac72992bf8c5 (diff) | |
download | illumos-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.c | 2 |
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; |