Wait until we have the lock before getting the pvt structure pointer (issue #7313 reported by arkadia)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@33296 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.4
Joshua Colp 20 years ago
parent a23af6559c
commit 5349ae6f46

@ -2236,7 +2236,7 @@ static void update_jbsched(struct chan_iax2_pvt *pvt)
static void __get_from_jb(void *p)
{
int callno = PTR_TO_CALLNO(p);
struct chan_iax2_pvt *pvt = iaxs[callno];
struct chan_iax2_pvt *pvt = NULL;
struct iax_frame *fr;
jb_frame frame;
int ret;

Loading…
Cancel
Save