diff options
author | Peter Lieven <pl@dlhnet.de> | 2012-11-15 15:42:06 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2012-11-28 12:46:13 +0100 |
commit | 8da1e18b0cf46b6c95c88bbad1cc50d6dd1bef4b (patch) | |
tree | 1bb55e6f7cb394e09a6325e8fa11d645df2b435f /block/iscsi.c | |
parent | 03a36f17d7788e4a1e07b3341b18028aa0206845 (diff) | |
download | qemu-8da1e18b0cf46b6c95c88bbad1cc50d6dd1bef4b.zip qemu-8da1e18b0cf46b6c95c88bbad1cc50d6dd1bef4b.tar.gz qemu-8da1e18b0cf46b6c95c88bbad1cc50d6dd1bef4b.tar.bz2 |
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>
Diffstat (limited to 'block/iscsi.c')
-rw-r--r-- | block/iscsi.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/block/iscsi.c b/block/iscsi.c index a6a819d..5cd8b49 100644 --- a/block/iscsi.c +++ b/block/iscsi.c @@ -947,8 +947,7 @@ static int iscsi_open(BlockDriverState *bs, const char *filename, int flags) iscsi_url = iscsi_parse_full_url(iscsi, filename); if (iscsi_url == NULL) { - error_report("Failed to parse URL : %s %s", filename, - iscsi_get_error(iscsi)); + error_report("Failed to parse URL : %s", filename); ret = -EINVAL; goto out; } |