Merge pull request #896 from echampet/webresource
authorMarek Safar <marek.safar@gmail.com>
Tue, 29 Mar 2016 07:33:39 +0000 (09:33 +0200)
committerMarek Safar <marek.safar@gmail.com>
Tue, 29 Mar 2016 07:33:39 +0000 (09:33 +0200)
[Fix] ReusableHashAlgorithm doesn't set the Key of the ValidationAlgorit...

mcs/class/System.Web/System.Web.Handlers/AssemblyResourceLoader.cs

index a8cd2f842cb2d887242b5e8292085c3e6410e5e2..7f59b52e22b47f90653406803db3f8ef8acc6c08 100644 (file)
@@ -79,7 +79,9 @@ namespace System.Web.Handlers
                                        if (!hashAlg.CanReuseTransform) {
                                                canReuseHashAlg = false;
                                                hashAlg = null;
+                                               return null;
                                        }
+                                       hashAlg.Key = MachineKeySectionUtils.GetValidationKey (mks);
                                }
 
                                if (hashAlg != null)