]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: storage: Fix parsing of IPv6 portal address for iSCSI
authorPeter Krempa <pkrempa@redhat.com>
Tue, 7 Nov 2017 15:20:23 +0000 (16:20 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 8 Nov 2017 12:10:40 +0000 (13:10 +0100)
commit0a3bae7d2270b86a7042b1970360851bf7ebbdb3
tree33d734974812990c372793b266e87d45a4344811
parentab81dafe801396935aa3ae977237dba345624254
util: storage: Fix parsing of IPv6 portal address for iSCSI

Split on the last colon and avoid parsing port if the split remainder
contains the closing square bracket, so that IPv6 addresses are
interpreted correctly.
src/util/virstoragefile.c
tests/virstoragetest.c