From: Daniel P. Berrange Date: Fri, 28 Sep 2007 20:47:58 +0000 (+0000) Subject: Fixed crash prossing input tags X-Git-Tag: LIBVIRT_0_3_3~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b876bf6ea5c951dafe3978c8ee78ca9ef81dab6d;p=thirdparty%2Flibvirt.git Fixed crash prossing input tags --- diff --git a/ChangeLog b/ChangeLog index b032655a5e..d71f38b540 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Fri Sep 28 16:41:41 EST 2007 Daniel P. Berrange + + * src/qemu_conf.c: Fix crash processing multiple tags + Fri Sep 28 16:17:41 CEST 2007 Daniel Veillard * include/libvirt/libvirt.h[.in] src/driver.h src/openvz_driver.c diff --git a/src/qemu_conf.c b/src/qemu_conf.c index b7ccc43803..eda181cde9 100644 --- a/src/qemu_conf.c +++ b/src/qemu_conf.c @@ -1312,7 +1312,7 @@ static struct qemud_vm_def *qemudParseXML(virConnectPtr conn, } def->ninputs++; input->next = NULL; - if (i == 0) { + if (def->inputs == NULL) { def->inputs = input; } else { prev->next = input;