aboutsummaryrefslogtreecommitdiff
path: root/libsylph
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2007-04-23 01:37:38 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2007-04-23 01:37:38 +0000
commit82a29ab2e9247bf5efaa1d3f3027b3b4ce51f6c6 (patch)
tree9be58a6356bd56e4f35e7eefff40196c3101ef2f /libsylph
parent975ef7004497df84c6ae0df52ab4e71cd525e160 (diff)
fixed crash on Win32 when an OpenSSL DLL linked with MSVCR71.DLL was used.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@1664 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'libsylph')
-rw-r--r--libsylph/ssl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libsylph/ssl.c b/libsylph/ssl.c
index 00b46c9f..d3f7dff4 100644
--- a/libsylph/ssl.c
+++ b/libsylph/ssl.c
@@ -1,6 +1,6 @@
/*
* LibSylph -- E-Mail client library
- * Copyright (C) 1999-2006 Hiroyuki Yamamoto
+ * Copyright (C) 1999-2007 Hiroyuki Yamamoto
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -244,12 +244,12 @@ gboolean ssl_init_socket_with_method(SockInfo *sockinfo, SSLMethod method)
if ((str = X509_NAME_oneline(X509_get_subject_name(server_cert), 0, 0)) != NULL) {
debug_print(_(" Subject: %s\n"), str);
- g_free(str);
+ OPENSSL_free(str);
}
if ((str = X509_NAME_oneline(X509_get_issuer_name(server_cert), 0, 0)) != NULL) {
debug_print(_(" Issuer: %s\n"), str);
- g_free(str);
+ OPENSSL_free(str);
}
verify_result = SSL_get_verify_result(sockinfo->ssl);