summaryrefslogtreecommitdiffstats
path: root/src/tests
diff options
context:
space:
mode:
authorMichael Brown2006-12-21 18:17:47 +0100
committerMichael Brown2006-12-21 18:17:47 +0100
commitab242a760d66064ff14b83daaa2eef0a895c8d2b (patch)
treecbf40f86cc848448bb366db05da55bb6595e6811 /src/tests
parentDefault to port 0 (sic). (diff)
downloadipxe-ab242a760d66064ff14b83daaa2eef0a895c8d2b.tar.gz
ipxe-ab242a760d66064ff14b83daaa2eef0a895c8d2b.tar.xz
ipxe-ab242a760d66064ff14b83daaa2eef0a895c8d2b.zip
Add ability to shut down iSCSI connection
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/iscsiboot.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tests/iscsiboot.c b/src/tests/iscsiboot.c
index 21a1b58e..f7cf8b74 100644
--- a/src/tests/iscsiboot.c
+++ b/src/tests/iscsiboot.c
@@ -32,7 +32,7 @@ int test_iscsiboot ( const char *initiator_iqn,
printf ( "Initialising %s\n", target_iqn );
if ( ( rc = init_iscsidev ( &test_iscsidev ) ) != 0 ) {
printf ( "Could not reach %s: %s\n", target_iqn,
- strerror ( errno ) );
+ strerror ( rc ) );
return rc;
}
ibft_fill_data ( netdev, initiator_iqn, target, target_iqn );
@@ -49,5 +49,7 @@ int test_iscsiboot ( const char *initiator_iqn,
printf ( "Unregistering BIOS drive %#02x\n", drive.drive );
unregister_int13_drive ( &drive );
+ fini_iscsidev ( &test_iscsidev );
+
return rc;
}