diff --git a/NetworkPkg/IScsiDxe/IScsiProto.c b/NetworkPkg/IScsiDxe/IScsiProto.c index 6983f0fa59..69d1b39dbb 100644 --- a/NetworkPkg/IScsiDxe/IScsiProto.c +++ b/NetworkPkg/IScsiDxe/IScsiProto.c @@ -417,6 +417,23 @@ ON_EXIT: return Status; } +/** + Re-set any stateful session-level authentication information that is used by + the leading login / leading connection. + + (Note that this driver only supports a single connection per session -- see + ISCSI_MAX_CONNS_PER_SESSION.) + + @param[in,out] Session The iSCSI session. +**/ +STATIC +VOID +IScsiSessionResetAuthData ( + IN OUT ISCSI_SESSION *Session + ) +{ +} + /** Login the iSCSI session. @@ -470,6 +487,7 @@ IScsiSessionLogin ( // // Login through the newly created connection. // + IScsiSessionResetAuthData (Session); Status = IScsiConnLogin (Conn, Session->ConfigData->SessionConfigData.ConnectTimeout); if (EFI_ERROR (Status)) { IScsiConnReset (Conn);