diff --git a/src/libraries/System.Net.Security/src/System/Net/NegotiateAuthenticationPal.Unix.cs b/src/libraries/System.Net.Security/src/System/Net/NegotiateAuthenticationPal.Unix.cs index 77c3a3454b1ce6..5490cc86ef8a04 100644 --- a/src/libraries/System.Net.Security/src/System/Net/NegotiateAuthenticationPal.Unix.cs +++ b/src/libraries/System.Net.Security/src/System/Net/NegotiateAuthenticationPal.Unix.cs @@ -776,7 +776,8 @@ public static bool CheckHasSystemNetSecurityNative() { try { - return Interop.NetSecurityNative.IsNtlmInstalled(); + _ = Interop.NetSecurityNative.IsNtlmInstalled(); + return true; } catch (Exception e) when (e is EntryPointNotFoundException || e is DllNotFoundException || e is TypeInitializationException) {