Wait until we have the lock before getting the pvt structure pointer (issue #7313...
authorJoshua Colp <jcolp@digium.com>
Fri, 9 Jun 2006 18:20:28 +0000 (18:20 +0000)
committerJoshua Colp <jcolp@digium.com>
Fri, 9 Jun 2006 18:20:28 +0000 (18:20 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@33296 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_iax2.c

index 6e684e4..ad3b7b3 100644 (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;