pidgin: 2ea831c9: Prevent a NULL ptr deref when unexpected...

datallah at pidgin.im datallah at pidgin.im
Thu Dec 18 22:16:04 EST 2008


-----------------------------------------------------------------
Revision: 2ea831c9d9fa347deb4c363b061869f050d29419
Ancestor: 1f694eaa1db3b523c7b7e33fa78d4d4a7922825f
Author: datallah at pidgin.im
Date: 2008-12-19T03:11:59
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/2ea831c9d9fa347deb4c363b061869f050d29419

Modified files:
        libpurple/certificate.c

ChangeLog: 

Prevent a NULL ptr deref when unexpected stuff happens in the cert cache. Fixes #7776,#7769

-------------- next part --------------
============================================================
--- libpurple/certificate.c	a8a0e2d53e06c36225ccc995bc9b9837302809b5
+++ libpurple/certificate.c	9995d369819ae34fce47d4c0c2a95bc4902bf27b
@@ -1259,6 +1259,7 @@ x509_tls_cached_cert_in_cache(PurpleCert
 				   "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 */


More information about the Commits mailing list