Blame SOURCES/0025-iscsid-Fix-strlen-parameter.patch
|
|
6c64be |
From 5569a3d9d0933a226860284cbad8b0c04f1ba0e5 Mon Sep 17 00:00:00 2001
|
|
|
6c64be |
From: Jan Vesely <jvesely@redhat.com>
|
|
|
6c64be |
Date: Wed, 26 Jun 2013 14:45:57 +0200
|
|
|
6c64be |
Subject: iscsid: Fix strlen parameter
|
|
|
6c64be |
|
|
|
6c64be |
The target socket name is passed as parameter, don't use the hardwired
|
|
|
6c64be |
one.
|
|
|
6c64be |
|
|
|
6c64be |
Signed-off-by: Jan Vesely <jvesely@redhat.com>
|
|
|
6c64be |
---
|
|
|
6c64be |
usr/iscsid_req.c | 2 +-
|
|
|
6c64be |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
6c64be |
|
|
|
6c64be |
diff --git a/usr/iscsid_req.c b/usr/iscsid_req.c
|
|
|
6c64be |
index 15f6353..715c0aa 100644
|
|
|
6c64be |
--- a/usr/iscsid_req.c
|
|
|
6c64be |
+++ b/usr/iscsid_req.c
|
|
|
6c64be |
@@ -67,7 +67,7 @@ static int ipc_connect(int *fd, char *unix_sock_name, int start_iscsid)
|
|
|
6c64be |
return ISCSI_ERR_ISCSID_NOTCONN;
|
|
|
6c64be |
}
|
|
|
6c64be |
|
|
|
6c64be |
- addr_len = offsetof(struct sockaddr_un, sun_path) + strlen(ISCSIADM_NAMESPACE) + 1;
|
|
|
6c64be |
+ addr_len = offsetof(struct sockaddr_un, sun_path) + strlen(unix_sock_name) + 1;
|
|
|
6c64be |
|
|
|
6c64be |
memset(&addr, 0, sizeof(addr));
|
|
|
6c64be |
addr.sun_family = AF_LOCAL;
|
|
|
6c64be |
--
|
|
|
6c64be |
1.8.1.4
|
|
|
6c64be |
|