cURL / Mailing Lists / curl-library / Single Mail

curl-library

[PATCH] add some locking for thread-safety to NSS implementation

From: Rob Crittenden <rcritten_at_redhat.com>
Date: Fri, 05 Sep 2008 10:57:06 -0400

Add some locking around the initialized test to make it thread-safe.

Make the code more aware of whether it has initialized NSS itself or
whether it was initialized in another library linked with libcurl.

We would always shut down NSS during cleanup whether we initialized or
or not. Now we will only shut it down if libcurl initialized it.

rob

Received on 2008-09-05