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
This commit is contained in:
Joshua Colp
2006-06-09 18:20:28 +00:00
parent a23af6559c
commit 5349ae6f46
+1 -1
View File
@@ -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;