mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-07-31 14:07:16 +00:00
Fixed stack overflow. Fixed bridge network
This commit is contained in:
parent
ac2d00c498
commit
ef38afcfd4
@ -1,3 +1,9 @@
|
|||||||
|
Mon May 14 11:00:00 EST 2007 Daniel P. Berrange <berrange@redhat.com>
|
||||||
|
|
||||||
|
* qemud/conf.c: Fix initialization of var to prevent stack
|
||||||
|
overflow. Make sure we initialize the brCtl in case there
|
||||||
|
is no virtual network running
|
||||||
|
|
||||||
Thu May 11 10:20:00 EST 2007 Daniel P. Berrange <berrange@redhat.com>
|
Thu May 11 10:20:00 EST 2007 Daniel P. Berrange <berrange@redhat.com>
|
||||||
|
|
||||||
* src/xm_internal.c: Fix boot device XML syntax
|
* src/xm_internal.c: Fix boot device XML syntax
|
||||||
|
@ -246,7 +246,7 @@ static int qemudExtractVersionInfo(const char *qemu, int *version, int *flags) {
|
|||||||
_exit(-1); /* Just in case */
|
_exit(-1); /* Just in case */
|
||||||
} else { /* Parent */
|
} else { /* Parent */
|
||||||
char help[8192]; /* Ought to be enough to hold QEMU help screen */
|
char help[8192]; /* Ought to be enough to hold QEMU help screen */
|
||||||
int got, ret = -1;
|
int got = 0, ret = -1;
|
||||||
int major, minor, micro;
|
int major, minor, micro;
|
||||||
|
|
||||||
if (close(newstdout[1]) < 0)
|
if (close(newstdout[1]) < 0)
|
||||||
@ -1152,6 +1152,12 @@ qemudNetworkIfaceConnect(struct qemud_server *server,
|
|||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!server->brctl && (err = brInit(&server->brctl))) {
|
||||||
|
qemudReportError(server, VIR_ERR_INTERNAL_ERROR,
|
||||||
|
"cannot initialize bridge support: %s", strerror(err));
|
||||||
|
goto error;
|
||||||
|
}
|
||||||
|
|
||||||
if ((err = brAddTap(server->brctl, brname,
|
if ((err = brAddTap(server->brctl, brname,
|
||||||
ifname, BR_IFNAME_MAXLEN, &tapfd))) {
|
ifname, BR_IFNAME_MAXLEN, &tapfd))) {
|
||||||
qemudReportError(server, VIR_ERR_INTERNAL_ERROR,
|
qemudReportError(server, VIR_ERR_INTERNAL_ERROR,
|
||||||
|
Loading…
Reference in New Issue
Block a user