summaryrefslogtreecommitdiff
path: root/security/openssl/patches/patch-ah
blob: 69f2080d7899aba33c97643f2ba5c47011f3fa7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
$NetBSD: patch-ah,v 1.8 2008/06/03 21:39:40 tonnerre Exp $

--- ssl/t1_lib.c.orig	2007-10-19 09:44:10.000000000 +0200
+++ ssl/t1_lib.c
@@ -324,6 +324,7 @@ int ssl_parse_clienthello_tlsext(SSL *s,
 						s->session->tlsext_hostname[len]='\0';
 						if (strlen(s->session->tlsext_hostname) != len) {
 							OPENSSL_free(s->session->tlsext_hostname);
+							s->session->tlsext_hostname = NULL;
 							*al = TLS1_AD_UNRECOGNIZED_NAME;
 							return 0;
 						}