[selene-tls] push by p...@querna.org - don't need to strdup the SNI name, we control the memory already. on 2011-08-14 22:36 GMT

0 views
Skip to first unread message

selen...@googlecode.com

unread,
Aug 14, 2011, 6:45:39 PM8/14/11
to selene-...@googlegroups.com
Revision: c6fa0d099fdb
Author: Paul Querna <pqu...@apache.org>
Date: Sun Aug 14 15:36:18 2011
Log: don't need to strdup the SNI name, we control the memory already.

http://code.google.com/p/selene-tls/source/detail?r=c6fa0d099fdb

Modified:
/lib/parser/handshake_io.c

=======================================
--- /lib/parser/handshake_io.c Sat Jul 9 13:23:26 2011
+++ /lib/parser/handshake_io.c Sun Aug 14 15:36:18 2011
@@ -51,7 +51,7 @@

ch.session_id_len = 0;
ch.ciphers = &s->conf->ciphers;
- ch.server_name = sln_strdup(s, s->client_sni);
+ ch.server_name = s->client_sni;
ch.have_npn = 0;
ch.have_ocsp_stapling = 0;
SELENE_ERR(sln_handshake_serialize_client_hello(s, &ch, &bhs));

Reply all
Reply to author
Forward
0 new messages