test-tool: Avoid that login failure causes a segmentation fault

Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
This commit is contained in:
Bart Van Assche
2015-10-06 13:51:20 -07:00
committed by Ronnie Sahlberg
parent 5532325042
commit e9536d3333
11 changed files with 43 additions and 0 deletions

View File

@@ -65,6 +65,8 @@ test_reserve6_target_cold_reset(void)
logging(LOG_VERBOSE, "Create a second connection to the target");
ret = mpath_sd2_get_or_clone(sd, &sd2);
CU_ASSERT_EQUAL(ret, 0);
if (ret < 0)
return;
logging(LOG_VERBOSE, "RESERVE6 from the second initiator should work now");
ret = reserve6(sd2);