From eb5b60155a30428c12acd0b2c49b54159a4e55e8 Mon Sep 17 00:00:00 2001 From: "leroy.p.leahy" Date: Thu, 20 Mar 2014 22:05:51 +0000 Subject: 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 --- StdLib/EfiSocketLib/Socket.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'StdLib') 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; } -- cgit v1.2.3