[Pkg-iscsi-maintainers] [open-iscsi] 25/48: ISCSIUIO: Added fix for the iface.subnet_mask decoding for IPv6

Ritesh Raj Sarraf rrs at moszumanska.debian.org
Wed Aug 20 13:54:10 UTC 2014

This is an automated email from the git hooks/post-receive script.

rrs pushed a commit to branch upstream-mnc
in repository open-iscsi.

commit df68365bef167778fb59059e78090d33a01e4e7f
Author: Eddie Wai <eddie.wai at broadcom.com>
Date:   Wed Dec 11 15:38:13 2013 -0800

    ISCSIUIO: Added fix for the iface.subnet_mask decoding for IPv6
    Fixed a inet_pton decode error for the iface.subnet_mask for IPv6.
    Signed-off-by: Eddie Wai <eddie.wai at broadcom.com>
 iscsiuio/src/unix/iscsid_ipc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/iscsiuio/src/unix/iscsid_ipc.c b/iscsiuio/src/unix/iscsid_ipc.c
index e22de0d..033308d 100644
--- a/iscsiuio/src/unix/iscsid_ipc.c
+++ b/iscsiuio/src/unix/iscsid_ipc.c
@@ -274,7 +274,7 @@ static int decode_iface(struct iface_rec_decode *ird, struct iface_rec *rec)
 				       sizeof(struct in6_addr));
 			/* Subnet mask priority: CIDR, then rec */
 			if (!ird->ipv6_subnet_mask.s6_addr)
-				inet_pton(AF_INET, rec->subnet_mask,
+				inet_pton(AF_INET6, rec->subnet_mask,
 			/* For LL on, ignore the IPv6 addr in the iface */

Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-iscsi/open-iscsi.git

More information about the Pkg-iscsi-maintainers mailing list