changeset 24840:7608cf033a88

Prevent a NULL ptr deref when unexpected stuff happens in the cert cache. Fixes #7776,#7769
author Daniel Atallah <daniel.atallah@gmail.com>
date Fri, 19 Dec 2008 03:11:59 +0000
parents 7be4d472761a
children e7b27ee5e7b6 a3ff72aa9c39
files libpurple/certificate.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/certificate.c	Fri Dec 19 03:10:04 2008 +0000
+++ b/libpurple/certificate.c	Fri Dec 19 03:11:59 2008 +0000
@@ -1259,6 +1259,7 @@
 				   "to cert_changed.\n");
 		/* vrq now becomes the problem of cert_changed */
 		x509_tls_cached_peer_cert_changed(vrq);
+		return;
 	}
 
 	/* Now get SHA1 sums for both and compare them */