mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-09-13 11:15:08 +00:00
Fixed crash prossing input tags
This commit is contained in:
parent
4bf3bc9eda
commit
b876bf6ea5
@ -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>
|
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
|
* 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++;
|
def->ninputs++;
|
||||||
input->next = NULL;
|
input->next = NULL;
|
||||||
if (i == 0) {
|
if (def->inputs == NULL) {
|
||||||
def->inputs = input;
|
def->inputs = input;
|
||||||
} else {
|
} else {
|
||||||
prev->next = input;
|
prev->next = input;
|
||||||
|
Loading…
Reference in New Issue
Block a user