Fix listen exit path when last port returns an error.

Signed-off-by: lpleahy


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13466 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
lpleahy 2012-06-22 21:46:55 +00:00
parent 4d93b754bf
commit b497a8a894
2 changed files with 4 additions and 0 deletions

View File

@ -790,6 +790,8 @@ EslTcp4Listen (
// Mark the socket as configured
//
pSocket->bConfigured = TRUE;
Status = EFI_SUCCESS;
pSocket->errno = 0;
//
// All done

View File

@ -821,6 +821,8 @@ EslTcp6Listen (
// Mark the socket as configured
//
pSocket->bConfigured = TRUE;
Status = EFI_SUCCESS;
pSocket->errno = 0;
//
// All done