krb5: Quiet warning in socket_free()
This commit is contained in:
@@ -82,10 +82,13 @@ static void
|
||||
socket_free(krb5_storage * sp)
|
||||
{
|
||||
int save_errno = errno;
|
||||
if (rk_IS_SOCKET_ERROR(rk_closesocket(SOCK(sp))))
|
||||
if (rk_IS_SOCKET_ERROR(rk_closesocket(SOCK(sp)))) {
|
||||
#ifdef WIN32
|
||||
errno = rk_SOCK_ERRNO;
|
||||
else
|
||||
#endif
|
||||
} else {
|
||||
errno = save_errno;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user