[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor/master] Make OPENSSL_free(dh_string_repr)	conditional.
commit 7f9066ceee32f4df6d94b18c7b65e92d1730fce8
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date:   Mon Jun 10 13:49:13 2013 -0400
    Make OPENSSL_free(dh_string_repr) conditional.
---
 src/common/crypto.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/common/crypto.c b/src/common/crypto.c
index adbf639..e60172b 100644
--- a/src/common/crypto.c
+++ b/src/common/crypto.c
@@ -1740,7 +1740,8 @@ crypto_store_dynamic_dh_modulus(const char *fname)
  done:
   if (dh)
     DH_free(dh);
-  OPENSSL_free(dh_string_repr);
+  if (dh_string_repr)
+    OPENSSL_free(dh_string_repr);
   tor_free(base64_encoded_dh);
   tor_free(file_string);
 
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits