mirror of https://gitee.com/openkylin/libvirt.git
esx_vi: return -1 upon failure, as intended
* src/esx/esx_vi.c (esxVI_Enumeration_Deserialize): Fix reversed goto and result=-1 statements.
This commit is contained in:
parent
0fa4d62986
commit
8ed3088441
|
@ -856,9 +856,8 @@ esxVI_Enumeration_Deserialize(virConnectPtr conn,
|
||||||
return result;
|
return result;
|
||||||
|
|
||||||
failure:
|
failure:
|
||||||
goto cleanup;
|
|
||||||
|
|
||||||
result = -1;
|
result = -1;
|
||||||
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue