summaryrefslogtreecommitdiff
path: root/StdLib
diff options
context:
space:
mode:
authorleroy.p.leahy <leroy.p.leahy@intel.com>2014-03-20 22:05:51 +0000
committerlpleahy <lpleahy@6f19259b-4bc3-4df7-8a09-765794883524>2014-03-20 22:05:51 +0000
commiteb5b60155a30428c12acd0b2c49b54159a4e55e8 (patch)
tree612966be4fc7a5d796d2bb615fb3f55e4e00e1b2 /StdLib
parent774ccb4bcc9e4866ae9ab8422b99429c995c6039 (diff)
downloadedk2-platforms-eb5b60155a30428c12acd0b2c49b54159a4e55e8.tar.xz
Fix TCP4/TCP6 connections. Connections were transitioning into the connected state and the polling was returning an error. Fix the polling routine to return success in this case.
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: leroy.p.leahy@intel.com Reviewed-by: SREENIVASULA_REDDY@Dell.com git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15355 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'StdLib')
-rw-r--r--StdLib/EfiSocketLib/Socket.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/StdLib/EfiSocketLib/Socket.c b/StdLib/EfiSocketLib/Socket.c
index c7084a1a09..49c288d90a 100644
--- a/StdLib/EfiSocketLib/Socket.c
+++ b/StdLib/EfiSocketLib/Socket.c
@@ -1834,10 +1834,9 @@ EslSocketConnect (
case SOCKET_STATE_CONNECTED:
//
- // Already connected
+ // Connected
//
- pSocket->errno = EISCONN;
- Status = EFI_ALREADY_STARTED;
+ Status = EFI_SUCCESS;
break;
}