stream-ssl: Use OPENSSL_free() to free memory from X509_NAME_oneline().
authorBen Pfaff <blp@nicira.com>
Fri, 27 Aug 2010 20:30:31 +0000 (13:30 -0700)
committerBen Pfaff <blp@nicira.com>
Fri, 27 Aug 2010 20:30:31 +0000 (13:30 -0700)
Reported-by: Tsvi Slonim <tsvi@toroki.com>
lib/stream-ssl.c

index 69beab9..a633587 100644 (file)
@@ -1262,7 +1262,7 @@ log_ca_cert(const char *file_name, X509 *cert)
     subject = X509_NAME_oneline(X509_get_subject_name(cert), NULL, 0);
     VLOG_INFO("Trusting CA cert from %s (%s) (fingerprint %s)", file_name,
               subject ? subject : "<out of memory>", ds_cstr(&fp));
-    free(subject);
+    OPENSSL_free(subject);
     ds_destroy(&fp);
 }