提交 b126715a 编写于 作者: R Ryan Woodsmall 提交者: Matthias Bolte

esx: Fix segfault in esxConnectToHost

Caused by commit 4445e16b that
made the code used the connection private data pointer before
it was initialized.
上级 995b5b3d
......@@ -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:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册