From 23f76dc290ca84b3df56bf58be0a4b8e3a7e38ab Mon Sep 17 00:00:00 2001 From: Richard Lowe Date: Mon, 16 May 2011 06:23:38 +0100 Subject: 1550 SMF manifest find should return -1 on allocation failure Reviewed by: Joshua M. Clulow Reviewed by: Alexander Eremin Reviewed by: Igor Kozhukhov Approved by: Garrett D'Amore --- usr/src/cmd/svc/common/manifest_find.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr/src') 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; -- cgit v1.2.3