Nelson B Bolyard wrote: > Howard Chu wrote, On 2008-08-16 17:03: >> What software is that? The docs say NSS_Init must only be called once; this >> would only be a problem if a piece of code called NSS_Init multiple times and >> still only called NSS_Shutdown once. Code written that way is clearly broken. > > Well, take the ldap code in the browser for example. It has a function > ldapssl_shutdown that calls NSS_Shutdown, but mxr says there are NO callers > of that ldapssl_shutdown function.
In fact, the browser's ldap support doesn't use the ldapssl library at all; it uses PSM instead, and that's simply by installing a custom connect handler in the plain ldap library. As such, the ldap library doesn't know anything about NSS and ldapssl_shutdown is irrelevant. So, bad example... -- -- Howard Chu CTO, Symas Corp. http://www.symas.com Director, Highland Sun http://highlandsun.com/hyc/ Chief Architect, OpenLDAP http://www.openldap.org/project/ _______________________________________________ dev-tech-crypto mailing list dev-tech-crypto@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-tech-crypto