Commit 561958bf authored by Ghislain MARY's avatar Ghislain MARY
Browse files

Fix buffer that may be uninitialized.

parent dc3bdd6b
......@@ -517,6 +517,7 @@ static int tls_process_handshake(belle_sip_channel_t *obj){
char tmp[128];
int err=bctbx_ssl_handshake(channel->sslctx);
memset(tmp, '\0', sizeof(tmp));
if (err == 0){
belle_sip_message("Channel [%p]: SSL handshake finished, SSL version is [%s], selected ciphersuite is [%s]",obj,
bctbx_ssl_get_version(channel->sslctx), bctbx_ssl_get_ciphersuite(channel->sslctx));
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment