]> git.sur5r.net Git - openldap/commit
ITS#7136 MozNSS: store TLS params until the deferred initialization is finished
authorJan Vcelak <jvcelak@redhat.com>
Wed, 25 Jan 2012 15:19:45 +0000 (16:19 +0100)
committerHoward Chu <hyc@openldap.org>
Thu, 26 Jan 2012 05:24:28 +0000 (21:24 -0800)
commit4e9926ca9719a0dab8c780d3d2f4cf4bfc03bfdc
tree727474928b53b7c6be074d00524aba09f7aad394
parent1107103dd7e767db9c080b3276cb6e742fcf36a1
ITS#7136 MozNSS: store TLS params until the deferred initialization is finished

Deferred TLS initialization is used with Mozilla NSS. The real
initialization takes place when the TLS context is needed for the first
time. If the initialization parameters were freed immediately after
tlsm_ctx_init was called, they were not available at the time of
deferred initialization which caused segmentation fault.

With this patch, initialization parameters are copied and stored until
the deferred initialization is finished. The parameters are freed
afterwards.

Red Hat Bugzilla: #783431
libraries/libldap/tls_m.c