diff options
Diffstat (limited to 'mcs/class/corlib/Mono.Security.X509')
-rw-r--r-- | mcs/class/corlib/Mono.Security.X509/ChangeLog | 4 | ||||
-rwxr-xr-x | mcs/class/corlib/Mono.Security.X509/X509Chain.cs | 9 |
2 files changed, 6 insertions, 7 deletions
diff --git a/mcs/class/corlib/Mono.Security.X509/ChangeLog b/mcs/class/corlib/Mono.Security.X509/ChangeLog index add41ab01a7..5cfdfbd7a78 100644 --- a/mcs/class/corlib/Mono.Security.X509/ChangeLog +++ b/mcs/class/corlib/Mono.Security.X509/ChangeLog @@ -1,7 +1,3 @@ -2004-09-07 Sebastien Pouliot <sebastien@ximian.com> - - * X509Chain.cs: Merge bug fixes from HEAD. - 2004-05-27 Sebastien Pouliot <sebastien@ximian.com> * X509Certificate.cs: Rethrow original exception when parsing X.509 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 |