mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 11:35:19 +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>
|
||||
|
||||
* 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;
|
||||
|
Loading…
Reference in New Issue
Block a user