]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Don't crash when passing a NULL message to __astman_get_header.
authorSean Bright <sean@malleable.com>
Tue, 18 Sep 2012 20:14:01 +0000 (20:14 +0000)
committerSean Bright <sean@malleable.com>
Tue, 18 Sep 2012 20:14:01 +0000 (20:14 +0000)
commit522740b00edc5d3b6ee80652e80c520fb3bb6398
tree3bd17763f966ff14093459dfa3fc0cfe916e80ef
parent0227e8159513fda19deb8fce9692aaac56bad897
Don't crash when passing a NULL message to __astman_get_header.

Before this commit, __astman_get_header would blindly dereference the passed in
'struct message *' to traverse the header list.  There are cases, however, such
as '*CLI> sip qualify peer foo' where the message pointer is NULL, so we need
to check for that.
........

Merged revisions 373131 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........

Merged revisions 373132 from http://svn.asterisk.org/svn/asterisk/branches/10

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/11@373133 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/manager.c