From 8a731c972bb97b5d814083c5ac700c1f25bf2ba2 Mon Sep 17 00:00:00 2001 From: lishu Date: Thu, 29 Nov 2018 21:34:25 +0800 Subject: san bug修复,san可能为NULL MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/SSL_Analyze.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/SSL_Analyze.c') diff --git a/src/SSL_Analyze.c b/src/SSL_Analyze.c index 316f942..70c5cea 100644 --- a/src/SSL_Analyze.c +++ b/src/SSL_Analyze.c @@ -19,7 +19,7 @@ ssl_prog_runtime_parameter_t g_ssl_prog_para; -int SSL_VERSION_1_20181108 = 0; +int SSL_VERSION_1_20181129 = 0; void ssl_history() { @@ -62,6 +62,8 @@ void ssl_history() //2018-06-29 V0.2 cert extension //2018-07-30 V0.2 APPLICATION_DATA bug //2018-11-08 V0.2 multi-san +//2018-11-29 V0.2 san dictator_malloc + //to do //certificate ANSL @@ -267,7 +269,7 @@ int ssl_initSslStream(struct streaminfo *a_tcp, void **pme, int thread_seq) memset(a_ssl_stream->stClientHello, 0, sizeof(a_ssl_stream->stClientHello)); ssl_initStructClientHello(a_ssl_stream->stClientHello); - a_ssl_stream->stServerHello = (st_server_hello_t*)malloc(sizeof(st_server_hello_t)); + a_ssl_stream->stServerHello = (st_server_hello_t*)dictator_malloc(thread_seq,sizeof(st_server_hello_t)); memset(a_ssl_stream->stServerHello, 0, sizeof(a_ssl_stream->stServerHello)); ssl_initStructServerHello(a_ssl_stream->stServerHello); */ -- cgit v1.2.3