summaryrefslogtreecommitdiff
path: root/MdeModulePkg
diff options
context:
space:
mode:
authortye1 <tye1@6f19259b-4bc3-4df7-8a09-765794883524>2010-12-16 09:26:28 +0000
committertye1 <tye1@6f19259b-4bc3-4df7-8a09-765794883524>2010-12-16 09:26:28 +0000
commit70b356a9ffb974a1b9a02284091e25f02dfee385 (patch)
tree81c34ce56f60b32b51aa393a2b6b3a91de5c716f /MdeModulePkg
parent0a13c99cf15736329d778b485e516638ed706d10 (diff)
downloadedk2-70b356a9ffb974a1b9a02284091e25f02dfee385.zip
edk2-70b356a9ffb974a1b9a02284091e25f02dfee385.tar.gz
edk2-70b356a9ffb974a1b9a02284091e25f02dfee385.tar.bz2
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
Diffstat (limited to 'MdeModulePkg')
-rw-r--r--MdeModulePkg/Library/DxeTcpIoLib/DxeTcpIoLib.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/MdeModulePkg/Library/DxeTcpIoLib/DxeTcpIoLib.c b/MdeModulePkg/Library/DxeTcpIoLib/DxeTcpIoLib.c
index 48120b4..110e489 100644
--- a/MdeModulePkg/Library/DxeTcpIoLib/DxeTcpIoLib.c
+++ b/MdeModulePkg/Library/DxeTcpIoLib/DxeTcpIoLib.c
@@ -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;
}