[iscsi] Avoid potential infinite loops during shutdown
authorMichael Brown <mcb30@ipxe.org>
Wed, 16 Nov 2016 23:00:57 +0000 (23:00 +0000)
committerMichael Brown <mcb30@ipxe.org>
Wed, 16 Nov 2016 23:03:37 +0000 (23:03 +0000)
commit81fceaec6eea05efb942a188c3d92dd73a1a8aa0
treecc0eaf51e5af5c48de3696889aed1b581fb16dd9
parentdaa8ed9274d91a157dc049f00792f62c98b0a11a
[iscsi] Avoid potential infinite loops during shutdown

The command and data interfaces may be connected to the same object.
Nullify the data interface before shutting down the control interface
to avoid potential infinite loops.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/net/tcp/iscsi.c