aboutsummaryrefslogtreecommitdiff
path: root/src/sslmanager.c
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 /src/sslmanager.c
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 'src/sslmanager.c')
-rw-r--r--src/sslmanager.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/sslmanager.c b/src/sslmanager.c
index cfdeee6e..45845357 100644
--- a/src/sslmanager.c
+++ b/src/sslmanager.c
@@ -1,6 +1,6 @@
/*
* Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2006 Hiroyuki Yamamoto
+ * Copyright (C) 1999-2007 Hiroyuki Yamamoto
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -71,8 +71,10 @@ gint ssl_manager_verify_cert(SockInfo *sockinfo, const gchar *hostname,
hostname, X509_verify_cert_error_string(verify_result),
subject ? subject : "(unknown)",
issuer ? issuer : "(unknown)");
- g_free(issuer);
- g_free(subject);
+ if (issuer)
+ OPENSSL_free(issuer);
+ if (subject)
+ OPENSSL_free(subject);
dialog = gtk_dialog_new();
gtk_window_set_title(GTK_WINDOW(dialog), title);