Don't set pointer if add_lock_callback used.
[openssl.git] / crypto / cryptlib.c
index e9c9b3b5a226e9572151c1f5973ac7d8d22f3e62..b733abafeeea944b9cdb0c99f742a37e6070be4d 100644 (file)
@@ -431,7 +431,6 @@ int CRYPTO_add_lock(int *pointer, int amount, int type, const char *file,
                        CRYPTO_get_lock_name(type),
                        file,line);
 #endif
-               *pointer=ret;
                }
        else
                {