]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Fix error detection in virStorageBackendISCSIGetHostNumber
authorJán Tomko <jtomko@redhat.com>
Tue, 21 Jun 2016 13:13:41 +0000 (15:13 +0200)
committerJán Tomko <jtomko@redhat.com>
Fri, 24 Jun 2016 14:30:55 +0000 (16:30 +0200)
commit83066f99a9c2e53b9e01d621cbccd0135b71d699
tree6178e4b4042f9881b56aa6bf300322d40816d485
parent0f79480b9f10683962235d8babce4913df411ade
Fix error detection in virStorageBackendISCSIGetHostNumber

In the unlikely case the iSCSI session path exists, but does not
contain an entry starting with "target", we would silently use
an initialized value.

Rewrite the function to correctly report errors.
src/storage/storage_backend_iscsi.c