Skip to content
Snippets Groups Projects
Commit 579919e8 authored by Mark Michelson's avatar Mark Michelson
Browse files

Ensure that SDP read from TCP socket is null-terminated.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@218504 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 03813264
No related branches found
No related tags found
No related merge requests found
......@@ -2967,6 +2967,7 @@ static void *_sip_tcp_helper_thread(struct sip_pvt *pvt, struct ast_tcptls_sessi
ast_mutex_unlock(&tcptls_session->lock);
goto cleanup;
}
buf[sizeof(buf)-1] = '\0';
ast_mutex_unlock(&tcptls_session->lock);
if (me->stop)
goto cleanup;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment