]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip: dtls_handler causes Asterisk to crash
authorKevin Harwell <kharwell@digium.com>
Wed, 11 Feb 2015 18:04:09 +0000 (18:04 +0000)
committerKevin Harwell <kharwell@digium.com>
Wed, 11 Feb 2015 18:04:09 +0000 (18:04 +0000)
commit3ad393b043096e2c9e83996218d2dc757a752294
treec1df24b32f340bc27a582209e368bdaea1ee9af8
parent8be00450b93c4a1edfb82f884022f431b9c3d457
res_pjsip: dtls_handler causes Asterisk to crash

There have been a couple of times where a crash occurred in the dtls_handler
section of the code for res_pjsip. Unfortunately, in working this issue the
problem was unable to be reproduced. After looking at the backtraces and
through the code the current best guess as to why this happened might be due
to a reentrance problem and the strtok function. So, the current fix is to
convert the strtok function into the reentrant version of the function,
strtok_r.

ASTERISK-24741 #close
Reported by: Zane Conkle
Review: https://reviewboard.asterisk.org/r/4409/
........

Merged revisions 431698 from http://svn.asterisk.org/svn/asterisk/branches/13

git-svn-id: https://origsvn.digium.com/svn/asterisk/certified/branches/13.1@431700 65c4cc65-6c06-0410-ace0-fbb531ad65f3
res/res_pjsip/pjsip_configuration.c