krb5: Quiet warning in socket_free()

This commit is contained in:
Nicolas Williams
2023-01-04 16:17:30 -06:00
parent 45cd575d83
commit fefc380568

View File

@@ -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;
}
}
/**