Author: spouliot
Date: 2006-06-15 09:49:09 -0400 (Thu, 15 Jun 2006)
New Revision: 61755

Modified:
   trunk/mcs/class/corlib/System.Security/ChangeLog
   trunk/mcs/class/corlib/System.Security/SecurityContext.cs
Log:
2006-06-15  Sebastien Pouliot  <[EMAIL PROTECTED]>

        * SecurityContext.cs: Don't call CompressedStack.Run if we don't have
        a compressed stack in the context (which can now happen because of 
        #78652). This should fix MWF bug #78652 (BeginInvoke under 2.0).



Modified: trunk/mcs/class/corlib/System.Security/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/System.Security/ChangeLog    2006-06-15 12:02:57 UTC 
(rev 61754)
+++ trunk/mcs/class/corlib/System.Security/ChangeLog    2006-06-15 13:49:09 UTC 
(rev 61755)
@@ -1,3 +1,9 @@
+2006-06-15  Sebastien Pouliot  <[EMAIL PROTECTED]>
+
+       * SecurityContext.cs: Don't call CompressedStack.Run if we don't have
+       a compressed stack in the context (which can now happen because of 
+       #78652). This should fix MWF bug #78652 (BeginInvoke under 2.0).
+
 2006-04-07  Sebastien Pouliot  <[EMAIL PROTECTED]>
 
        * SecurityException.cs: Show Evidence correctly (it's a collection) 

Modified: trunk/mcs/class/corlib/System.Security/SecurityContext.cs
===================================================================
--- trunk/mcs/class/corlib/System.Security/SecurityContext.cs   2006-06-15 
12:02:57 UTC (rev 61754)
+++ trunk/mcs/class/corlib/System.Security/SecurityContext.cs   2006-06-15 
13:49:09 UTC (rev 61755)
@@ -142,7 +142,10 @@
                                        Thread.CurrentPrincipal = new 
WindowsPrincipal (new WindowsIdentity (sc.IdentityToken));
                                }
 
-                               CompressedStack.Run 
(securityContext.CompressedStack, callBack, state);
+                               // FIXME: is the security manager isn't active 
then we may not have
+                               // a compressed stack (bug #78652)
+                               if (securityContext.CompressedStack != null)
+                                       CompressedStack.Run 
(securityContext.CompressedStack, callBack, state);
                        }
                        finally {
                                if ((original != null) && (sc.IdentityToken != 
IntPtr.Zero))

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to