mturk / rpms / openssl

Forked from rpms/openssl 3 years ago
Clone
2c01b19
*) Fix double free in TLS server name extensions which could lead to a remote
2c01b19
crash found by Codenomicon TLS test suite (CVE-2008-0891) [Joe Orton]
2c01b19
Index: ssl/t1_lib.c
2c01b19
===================================================================
2c01b19
RCS file: /e/openssl/cvs/openssl/ssl/t1_lib.c,v
2c01b19
retrieving revision 1.13.2.8
2c01b19
diff -u -r1.13.2.8 ssl/t1_lib.c
2c01b19
--- ssl/t1_lib.c 18 Oct 2007 11:39:11 -0000
2c01b19
+++ ssl/t1_lib.c 18 Mar 2008 12:06:58 -0000
2c01b19
@@ -381,6 +381,7 @@
2c01b19
 						s->session->tlsext_hostname[len]='\0';
2c01b19
 						if (strlen(s->session->tlsext_hostname) != len) {
2c01b19
 							OPENSSL_free(s->session->tlsext_hostname);
2c01b19
+							s->session->tlsext_hostname = NULL;
2c01b19
 							*al = TLS1_AD_UNRECOGNIZED_NAME;
2c01b19
 							return 0;
2c01b19
 						}