IN int * pErrno\r
)\r
{\r
- EFI_SERVICE_BINDING_PROTOCOL * pServiceBinding;\r
EFI_STATUS Status;\r
\r
//\r
}\r
if ( !EFI_ERROR ( Status )) {\r
//\r
- // Locate the socket protocol\r
+ // Release the socket resources\r
//\r
- Status = gBS->LocateProtocol ( &gEfiSocketServiceBindingProtocolGuid,\r
- NULL,\r
- (VOID **) &pServiceBinding );\r
- if ( !EFI_ERROR ( Status )) {\r
- //\r
- // Release the handle\r
- //\r
- Status = pServiceBinding->DestroyChild ( pServiceBinding,\r
- pSocketProtocol->SocketHandle );\r
- }\r
- if ( EFI_ERROR ( Status )) {\r
- *pErrno = EIO;\r
- }\r
+ *pErrno = EslServiceFreeProtocol ( pSocketProtocol );\r
}\r
else {\r
DEBUG (( DEBUG_ERROR,\r
\r
**/\r
int\r
+EFIAPI\r
BslSocketClose (\r
struct __filedes * pDescriptor\r
)\r