Skip to content

Commit

Permalink
Merge pull request #168 from rodrigc/fix1
Browse files Browse the repository at this point in the history
test_reserve6_target_cold_reset: fix login parameters
  • Loading branch information
sahlberg committed Jun 3, 2015
2 parents a8e4268 + ff7a733 commit 3f73f00
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test-tool/test_reserve6_target_cold_reset.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ test_reserve6_target_cold_reset(void)

logging(LOG_VERBOSE, "Create a second connection to the target");
memset(&sd2, 0, sizeof(sd2));
sd2.iscsi_ctx = iscsi_context_login(initiatorname2, sd->iscsi_url, &sd2.iscsi_lun);
sd2.iscsi_url = sd->iscsi_url;
sd2.iscsi_lun = sd->iscsi_lun;
sd2.iscsi_ctx = iscsi_context_login(initiatorname2, sd2.iscsi_url, &sd2.iscsi_lun);
if (sd2.iscsi_ctx == NULL) {
logging(LOG_VERBOSE, "Failed to login to target");
return;
Expand Down

0 comments on commit 3f73f00

Please sign in to comment.