[Commits] ssl.c 1.9.2.59 1.9.2.60
colin at claws-mail.org
colin at claws-mail.org
Wed Dec 5 21:26:22 CET 2012
Update of /home/claws-mail/claws/src/common
In directory srv:/tmp/cvs-serv19745/src/common
Modified Files:
Tag: gtk2
ssl.c
Log Message:
2012-12-05 [colin] 3.9.0cvs41
* src/common/ssl.c
Nullify xcred pointer like the other ones
Index: ssl.c
===================================================================
RCS file: /home/claws-mail/claws/src/common/ssl.c,v
retrieving revision 1.9.2.59
retrieving revision 1.9.2.60
diff -u -d -r1.9.2.59 -r1.9.2.60
--- ssl.c 27 Nov 2012 10:18:55 -0000 1.9.2.59
+++ ssl.c 5 Dec 2012 20:26:20 -0000 1.9.2.60
@@ -345,7 +345,8 @@
void ssl_done_socket(SockInfo *sockinfo)
{
if (sockinfo && sockinfo->ssl) {
- gnutls_certificate_free_credentials(sockinfo->xcred);
+ if (sockinfo->xcred)
+ gnutls_certificate_free_credentials(sockinfo->xcred);
gnutls_deinit(sockinfo->ssl);
if (sockinfo->client_crt)
gnutls_x509_crt_deinit(sockinfo->client_crt);
@@ -353,6 +354,7 @@
gnutls_x509_privkey_deinit(sockinfo->client_key);
sockinfo->client_key = NULL;
sockinfo->client_crt = NULL;
+ sockinfo->xcred = NULL;
sockinfo->ssl = NULL;
}
}
More information about the Commits
mailing list