[Pkg-iscsi-maintainers] [open-iscsi] 25/33: iscsid: Fix strlen parameter

Ritesh Raj Sarraf rrs at alioth.debian.org
Tue Nov 5 16:21:17 UTC 2013


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 b0ba4d6288f87d33508add1b680cf22d2c3dbfe4
Author: Jan Vesely <jvesely at redhat.com>
Date:   Wed Jun 26 14:45:57 2013 +0200

    iscsid: Fix strlen parameter
    
    The target socket name is passed as parameter, don't use the hardwired
    one.
    
    Signed-off-by: Jan Vesely <jvesely at redhat.com>
---
 usr/iscsid_req.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/usr/iscsid_req.c b/usr/iscsid_req.c
index 15f6353..715c0aa 100644
--- a/usr/iscsid_req.c
+++ b/usr/iscsid_req.c
@@ -67,7 +67,7 @@ static int ipc_connect(int *fd, char *unix_sock_name, int start_iscsid)
 		return ISCSI_ERR_ISCSID_NOTCONN;
 	}
 
-	addr_len = offsetof(struct sockaddr_un, sun_path) + strlen(ISCSIADM_NAMESPACE) + 1;
+	addr_len = offsetof(struct sockaddr_un, sun_path) + strlen(unix_sock_name) + 1;
 
 	memset(&addr, 0, sizeof(addr));
 	addr.sun_family = AF_LOCAL;

-- 
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