Prevent a crash on outbound SIP MESSAGE requests.
authorMark Michelson <mmichelson@digium.com>
Wed, 21 Aug 2013 14:39:17 +0000 (14:39 +0000)
committerMark Michelson <mmichelson@digium.com>
Wed, 21 Aug 2013 14:39:17 +0000 (14:39 +0000)
commit25e38dfc9b8a0dd96851f5de970e6a293e37dda6
tree61a0dbbcf42c63800a986832b36dd76fb357e61d
parentd12350ccc33a3245a8f26f3346a9fda721d98a85
Prevent a crash on outbound SIP MESSAGE requests.

If a From header on an outbound out-of-call SIP MESSAGE were
malformed, the result could crash Asterisk.

In addition, if a From header on an incoming out-of-call SIP
MESSAGE request were malformed, the message was happily accepted
rather than being rejected up front. The incoming message path
would not result in a crash, but the behavior was bad nonetheless.

(closes issue ASTERISK-22185)
reported by Zhang Lei
........

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

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@397255 65c4cc65-6c06-0410-ace0-fbb531ad65f3
channels/chan_sip.c