diff options
Diffstat (limited to 'mcs/class/corlib/Mono.Security.X509/X509Chain.cs')
-rwxr-xr-x | mcs/class/corlib/Mono.Security.X509/X509Chain.cs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/mcs/class/corlib/Mono.Security.X509/X509Chain.cs b/mcs/class/corlib/Mono.Security.X509/X509Chain.cs index f8035e6c661..0ff5d875ac5 100755 --- a/mcs/class/corlib/Mono.Security.X509/X509Chain.cs +++ b/mcs/class/corlib/Mono.Security.X509/X509Chain.cs @@ -9,6 +9,10 @@ // Sebastien Pouliot <sebastien@ximian.com> // // (C) 2003 Motus Technologies Inc. (http://www.motus.com) +// (C) 2004 Novell (http://www.novell.com) +// + +// // Copyright (C) 2004 Novell, Inc (http://www.novell.com) // // Permission is hereby granted, free of charge, to any person obtaining @@ -132,7 +136,7 @@ namespace Mono.Security.X509 { tmp = FindCertificateParent (x); if (x != null) { _chain.Add (x); - x = tmp; // last valid + tmp = x; // last valid } } // find a trusted root @@ -189,8 +193,7 @@ namespace Mono.Security.X509 { _status = X509ChainStatusFlags.NoError; roots = null; // this force a reload certs.Clear (); - if (_chain != null) - _chain.Clear (); + _chain.Clear (); } // private stuff |