diff options
author | Michael Brown | 2006-12-21 18:17:47 +0100 |
---|---|---|
committer | Michael Brown | 2006-12-21 18:17:47 +0100 |
commit | ab242a760d66064ff14b83daaa2eef0a895c8d2b (patch) | |
tree | cbf40f86cc848448bb366db05da55bb6595e6811 /src/tests | |
parent | Default to port 0 (sic). (diff) | |
download | ipxe-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.c | 4 |
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; } |