From: Jan Vesely <[email protected]> The target socket name is passed as parameter, don't use the hardwired one.
Signed-off-by: Jan Vesely <[email protected]> --- 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; -- 1.8.1.4 -- You received this message because you are subscribed to the Google Groups "open-iscsi" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/open-iscsi. For more options, visit https://groups.google.com/groups/opt_out.
