From ec8f347286c14190557e6ed9e43cc3287eb0c8ba Mon Sep 17 00:00:00 2001 From: Eric Domazlicky Date: Fri, 1 Feb 2013 10:49:29 -0800 Subject: [PATCH] NETC-48: This issue may be related to a missing volatile keyword in the static bool "initialized". --- DotNetCasClient/CasAuthentication.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DotNetCasClient/CasAuthentication.cs b/DotNetCasClient/CasAuthentication.cs index f865d9a..67273ec 100644 --- a/DotNetCasClient/CasAuthentication.cs +++ b/DotNetCasClient/CasAuthentication.cs @@ -60,7 +60,7 @@ public sealed class CasAuthentication // Thread-safe initialization private static readonly object LockObject; - private static bool initialized; + private static volatile bool initialized; // System.Web/Authentication and System.Web/Authentication/Forms static classes internal static AuthenticationSection AuthenticationConfig;