projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ca78c6b
)
stream-ssl: Use OPENSSL_free() to free memory from X509_NAME_oneline().
author
Ben Pfaff
<blp@nicira.com>
Fri, 27 Aug 2010 20:30:31 +0000
(13:30 -0700)
committer
Ben 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
patch
|
blob
|
history
diff --git
a/lib/stream-ssl.c
b/lib/stream-ssl.c
index 69beab943d86377d0d2d74dcdfc75488cd31e593..a6335879fae73c9017aee9a2dac94ee91321cd70 100644
(file)
--- a/
lib/stream-ssl.c
+++ b/
lib/stream-ssl.c
@@
-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);
}