security_events: Fix assertion failure in dev-mode on optional IE parsing
authorMatthew Jordan <mjordan@digium.com>
Fri, 7 Feb 2014 20:17:50 +0000 (20:17 +0000)
committerMatthew Jordan <mjordan@digium.com>
Fri, 7 Feb 2014 20:17:50 +0000 (20:17 +0000)
commit8b295a2792e0c51175a477368d5ae00c02b84256
treeadef93c73d6b50904a31825d0ffca084424ed404
parente8e2f91bbac77ca50dddc4a496512475990a8764
security_events: Fix assertion failure in dev-mode on optional IE parsing

When formatting an optional IE, the value is, of course, optional. As such, it
is entirely appropriate for ast_json_object_get to return NULL. If that occurs,
we now simply skip the IE that was requested, as it was not provided by the
entity that raised the event.

Thanks to George Joseph (gtjoseph) for catching this and reporting it in
#asterisk-dev
........

Merged revisions 407750 from http://svn.asterisk.org/svn/asterisk/branches/12

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@407752 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/security_events.c