diff options
author | lpleahy <lpleahy@6f19259b-4bc3-4df7-8a09-765794883524> | 2012-06-01 20:01:30 +0000 |
---|---|---|
committer | lpleahy <lpleahy@6f19259b-4bc3-4df7-8a09-765794883524> | 2012-06-01 20:01:30 +0000 |
commit | 441f48f5b0847d35937534d6052f704f19019d2d (patch) | |
tree | 2687bfd5614999018edf90de491b6399501e8092 /StdLib/EfiSocketLib/UseEfiSocketLib.c | |
parent | 75ccc2b2111a318d25aae6df9d17590f0c04e814 (diff) | |
download | edk2-platforms-441f48f5b0847d35937534d6052f704f19019d2d.tar.xz |
UseEfiSocketLib.c - Only exit for out of resources, otherwise use all network adapters.
Service.c - Return EFI_SUCCESS if any of the protocols are present. Return failure only when no protocols are available or no more memory available.
Signed-off-by: lpleahy
Reviewed-by: vzimmer
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13426 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'StdLib/EfiSocketLib/UseEfiSocketLib.c')
-rw-r--r-- | StdLib/EfiSocketLib/UseEfiSocketLib.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/StdLib/EfiSocketLib/UseEfiSocketLib.c b/StdLib/EfiSocketLib/UseEfiSocketLib.c index ed72e8e763..6f4248b3d2 100644 --- a/StdLib/EfiSocketLib/UseEfiSocketLib.c +++ b/StdLib/EfiSocketLib/UseEfiSocketLib.c @@ -196,10 +196,17 @@ EslServiceNetworkConnect ( for ( Index = 0; HandleCount > Index; Index++ ) {
Status = EslServiceConnect ( gImageHandle,
pHandles[ Index ]);
- if ( EFI_ERROR ( Status )) {
- break;
+ if ( !EFI_ERROR ( Status )) {
+ bSomethingFound = TRUE;
+ }
+ else {
+ if ( EFI_OUT_OF_RESOURCES == Status ) {
+ //
+ // Pointless to continue without memory
+ //
+ break;
+ }
}
- bSomethingFound = TRUE;
}
//
|