iscsi: fix segfault in url parsing
authorPeter Lieven <pl@dlhnet.de>
Thu, 15 Nov 2012 14:42:06 +0000 (15:42 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 28 Nov 2012 11:46:13 +0000 (12:46 +0100)
commit8da1e18b0cf46b6c95c88bbad1cc50d6dd1bef4b
tree1bb55e6f7cb394e09a6325e8fa11d645df2b435f
parent03a36f17d7788e4a1e07b3341b18028aa0206845
iscsi: fix segfault in url parsing

If an invalid URL is specified iscsi_get_error(iscsi) is called
with iscsi == NULL.

Signed-off-by: Peter Lieven <pl@kamp.de>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
block/iscsi.c