mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-04 20:15:19 +00:00
esx: Fix segfault in esxConnectToHost
Caused by commit 4445e16bfa
that
made the code used the connection private data pointer before
it was initialized.
This commit is contained in:
parent
881dd9dc43
commit
622c0c7f70
1
AUTHORS
1
AUTHORS
@ -232,6 +232,7 @@ Patches have also been contributed by:
|
||||
Stefan Bader <stefan.bader@canonical.com>
|
||||
MATSUDA Daiki <matsudadik@intellilink.co.jp>
|
||||
Jan Kiszka <jan.kiszka@siemens.com>
|
||||
Ryan Woodsmall <rwoodsmall@gmail.com>
|
||||
|
||||
[....send patches to get your name here....]
|
||||
|
||||
|
@ -1023,6 +1023,8 @@ esxOpen(virConnectPtr conn, virConnectAuthPtr auth,
|
||||
priv->supportsLongMode = esxVI_Boolean_Undefined;
|
||||
priv->usedCpuTimeCounterId = -1;
|
||||
|
||||
conn->privateData = priv;
|
||||
|
||||
/*
|
||||
* Set the port dependent on the transport protocol if no port is
|
||||
* specified. This allows us to rely on the port parameter being
|
||||
@ -1114,8 +1116,6 @@ esxOpen(virConnectPtr conn, virConnectAuthPtr auth,
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
conn->privateData = priv;
|
||||
|
||||
result = VIR_DRV_OPEN_SUCCESS;
|
||||
|
||||
cleanup:
|
||||
|
Loading…
Reference in New Issue
Block a user