summaryrefslogtreecommitdiffstats
path: root/StdLib/EfiSocketLib/Socket.c
diff options
context:
space:
mode:
Diffstat (limited to 'StdLib/EfiSocketLib/Socket.c')
-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;
}