
# HG changeset patch # User kaitlin@elm3b43.beaverton.ibm.com # Date 1227029825 28800 # Node ID 9c1af5f53fb0f38c87a5657d234b99f12541b93d # Parent 6dced559882a0b792d2e31b45faae566b2dbfe38 (#2) Fix crash in KVMRedirecitonSAP. Make sure the char * in the vnc_ports struct is properly initialized. Also remove an unnecessary blank line. Update from 1 to 2: -Add DCO Signed-off-by: Kaitlin Rupert <karupert@us.ibm.com> diff -r 6dced559882a -r 9c1af5f53fb0 src/Virt_KVMRedirectionSAP.c --- a/src/Virt_KVMRedirectionSAP.c Tue Nov 11 10:22:57 2008 -0800 +++ b/src/Virt_KVMRedirectionSAP.c Tue Nov 18 09:37:05 2008 -0800 @@ -276,7 +276,6 @@ CMPI_RC_ERR_FAILED, "Unable to allocate guest port list"); goto out; - } for (i = 0; i < count; i++) { @@ -287,6 +286,7 @@ "Unable to allocate guest port list"); goto out; } + port_list.list[i]->name = NULL; } for (i = 0; i < count; i++) {