Fixes crash in chan_iax2 resulting from an edge case in the
way control frames are queued during calltoken negotiation is complete.
(closes issue ASTERISK-17610)
Reported by: mgrobecker
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@330581
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
static void free_signaling_queue_entry(struct signaling_queue_entry *s)
{
- ast_free(s->f.data.ptr);
+ if (s->f.datalen) {
+ ast_free(s->f.data.ptr);
+ }
ast_free(s);
}