mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
Fixed crash prossing input tags
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
Fri Sep 28 16:41:41 EST 2007 Daniel P. Berrange <berrange@redhat.com>
|
||||
|
||||
* src/qemu_conf.c: Fix crash processing multiple <input> tags
|
||||
|
||||
Fri Sep 28 16:17:41 CEST 2007 Daniel Veillard <veillard@redhat.com>
|
||||
|
||||
* include/libvirt/libvirt.h[.in] src/driver.h src/openvz_driver.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;
|
||||
|
||||
Reference in New Issue
Block a user