Don't crash when passing a NULL message to __astman_get_header.
authorSean Bright <sean@malleable.com>
Tue, 18 Sep 2012 20:14:33 +0000 (20:14 +0000)
committerSean Bright <sean@malleable.com>
Tue, 18 Sep 2012 20:14:33 +0000 (20:14 +0000)
commit54c531ff1c1f68465d27b6e66860405da717d175
tree9a66fbce7604b5655bc0ae9ea804fb23133bfb12
parentf8d815e19f925c7122f4bf4ead01b0111336866a
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
........

Merged revisions 373133 from http://svn.asterisk.org/svn/asterisk/branches/11

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