# HG changeset patch
# User Dan Smith <danms(a)us.ibm.com>
# Date 1194905315 28800
# Node ID c3aebc961483f72f6a60795b5902499cd4422a9e
# Parent 44fb749aa036b3ccaeed3862a302a3848cea3822
Fix crash if create_system() returns a NULL instance
Signed-off-by: Dan Smith <danms(a)us.ibm.com>
diff -r 44fb749aa036 -r c3aebc961483 src/Virt_VirtualSystemManagementService.c
--- a/src/Virt_VirtualSystemManagementService.c Mon Nov 12 14:06:19 2007 -0800
+++ b/src/Virt_VirtualSystemManagementService.c Mon Nov 12 14:08:35 2007 -0800
@@ -388,6 +388,8 @@ static CMPIStatus define_system(CMPIMeth
goto out;
sys = create_system(vssd, &res, reference, &s);
+ if (sys == NULL)
+ goto out;
inst_list_free(&res);