]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix segfault
authorMathieu Rene <mrene@avgs.ca>
Wed, 25 May 2011 19:04:40 +0000 (15:04 -0400)
committerMathieu Rene <mrene@avgs.ca>
Wed, 25 May 2011 19:04:40 +0000 (15:04 -0400)
src/include/switch_ssl.h

index 4f72192c52326cb8aa4b784e341db90f9c8288d7..30b3b07ec54bf63c940d5b84006ab6da84a74835 100644 (file)
@@ -90,7 +90,9 @@ static inline void switch_ssl_destroy_ssl_locks()
        if (ssl_count == 0) {
                CRYPTO_set_locking_callback(NULL);
                for (i = 0; i < CRYPTO_num_locks(); i++) {
-                       switch_mutex_destroy(ssl_mutexes[i]);
+                       if (ssl_mutexes[i]) {
+                               switch_mutex_destroy(ssl_mutexes[i]);
+                       }
                }
 
                OPENSSL_free(ssl_mutexes);