Fix segfault when dialing a typo'd queue
authorMark Michelson <mmichelson@digium.com>
Wed, 11 Mar 2009 14:28:40 +0000 (14:28 +0000)
committerMark Michelson <mmichelson@digium.com>
Wed, 11 Mar 2009 14:28:40 +0000 (14:28 +0000)
commitd7d817d687cf1f42405e51ab58cfe389bda7b4b2
treec38ea061643e380a0fbcef946d8d0b1b46b919e9
parent3a92673356e9f083dc152be0eb18c70ae3b72a29
Fix segfault when dialing a typo'd queue

If trying to dial a non-existent queue, there would
be a segfault when attempting to access q->weight, even
though q was NULL. This problem was introduced during
the queue-reset merge and thus only affects trunk.

(closes issue #14643)
Reported by: alecdavis

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@181244 65c4cc65-6c06-0410-ace0-fbb531ad65f3
apps/app_queue.c