summaryrefslogtreecommitdiffstats
path: root/src/net
diff options
context:
space:
mode:
Diffstat (limited to 'src/net')
-rw-r--r--src/net/tcp/iscsi.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/net/tcp/iscsi.c b/src/net/tcp/iscsi.c
index d6f80084..51d09ddc 100644
--- a/src/net/tcp/iscsi.c
+++ b/src/net/tcp/iscsi.c
@@ -231,10 +231,8 @@ static void iscsi_close ( struct iscsi_session *iscsi, int rc ) {
process_del ( &iscsi->process );
/* Shut down interfaces */
- intf_nullify ( &iscsi->data ); /* avoid potential loops */
- intf_shutdown ( &iscsi->socket, rc );
- intf_shutdown ( &iscsi->control, rc );
- intf_shutdown ( &iscsi->data, rc );
+ intfs_shutdown ( rc, &iscsi->socket, &iscsi->control, &iscsi->data,
+ NULL );
}
/**