]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
Even neater openssl callback removal code from Robert Fleischman.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Wed, 2 Jan 2013 14:44:34 +0000 (14:44 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Wed, 2 Jan 2013 14:44:34 +0000 (14:44 +0000)
git-svn-id: file:///svn/unbound/trunk@2801 be551aaa-1e26-0410-a405-d3ace91eadb9

util/net_help.c

index 1a94492e25c1ebd445b711536e7883e5bf198a68..054fa50860302e4653bf21fe8fec427b16062bee 100644 (file)
@@ -772,6 +772,8 @@ void ub_openssl_lock_delete(void)
        int i;
        if(!ub_openssl_locks)
                return;
+       CRYPTO_set_id_callback(NULL);
+       CRYPTO_set_locking_callback(NULL);
        for(i=0; i<CRYPTO_num_locks(); i++) {
                lock_basic_destroy(&ub_openssl_locks[i]);
        }