blob: e9fb33ae85cf8225820d95645eaacb92a9fe5575 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=569639
http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=15;filename=sni-fix.patch;att=1;bug=569639
diff --git a/src/ne_session.c b/src/ne_session.c
index 117c25a..c65848c 100644
--- a/src/ne_session.c
+++ b/src/ne_session.c
@@ -183,8 +183,9 @@ ne_session *ne_session_create(const char *scheme,
ia = ne_iaddr_parse(hostname, ne_iaddr_ipv6);
if (ia) {
- sess->flags[NE_SESSFLAG_TLS_SNI] = 1;
ne_iaddr_free(ia);
+ } else {
+ sess->flags[NE_SESSFLAG_TLS_SNI] = 1;
}
NE_DEBUG(NE_DBG_SSL, "ssl: SNI %s by default.\n",
sess->flags[NE_SESSFLAG_TLS_SNI] ?
|