Minor code update to make TcpIo unchanged when return EFI_DEVICE_ERROR.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11175 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
tye1 2010-12-16 09:26:28 +00:00
parent 0a13c99cf1
commit 70b356a9ff
1 changed files with 4 additions and 2 deletions

View File

@ -882,7 +882,6 @@ TcpIoReceive (
Tcp6 = NULL;
if (TcpIo->TcpVersion == TCP_VERSION_4) {
TcpIo->RxToken.Tcp4Token.Packet.RxData = &RxData;
Tcp4 = TcpIo->Tcp.Tcp4;
if (TcpIo->IsListenDone) {
@ -893,8 +892,9 @@ TcpIoReceive (
return EFI_DEVICE_ERROR;
}
TcpIo->RxToken.Tcp4Token.Packet.RxData = &RxData;
} else if (TcpIo->TcpVersion == TCP_VERSION_6) {
TcpIo->RxToken.Tcp6Token.Packet.RxData = (EFI_TCP6_RECEIVE_DATA *) &RxData;
Tcp6 = TcpIo->Tcp.Tcp6;
if (TcpIo->IsListenDone) {
@ -905,6 +905,8 @@ TcpIoReceive (
return EFI_DEVICE_ERROR;
}
TcpIo->RxToken.Tcp6Token.Packet.RxData = (EFI_TCP6_RECEIVE_DATA *) &RxData;
} else {
return EFI_UNSUPPORTED;
}