Skip to content

Commit

Permalink
iscsi-target: return the correct port in SendTargets
Browse files Browse the repository at this point in the history
The fact that a target is published on the any address has no bearing on
which port(s) it is published. SendTargets should always send the
portal's port, not the port used for discovery.

Signed-off-by: Steven Allen <steven.allen@purestorage.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
  • Loading branch information
Steven Allen authored and Nicholas Bellinger committed Oct 28, 2014
1 parent ab8edab commit f2774f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/target/iscsi/iscsi_target.c
Original file line number Diff line number Diff line change
Expand Up @@ -3491,7 +3491,7 @@ iscsit_build_sendtargets_response(struct iscsi_cmd *cmd,
len = sprintf(buf, "TargetAddress="
"%s:%hu,%hu",
inaddr_any ? conn->local_ip : np->np_ip,
inaddr_any ? conn->local_port : np->np_port,
np->np_port,
tpg->tpgt);
len += 1;

Expand Down

0 comments on commit f2774f4

Please sign in to comment.