mirror of https://github.com/acidanthera/audk.git
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:
parent
0a13c99cf1
commit
70b356a9ff
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue