get_header() always returns a non-NULL value, so checking
authorLuigi Rizzo <rizzo@icir.org>
Mon, 23 Oct 2006 19:52:43 +0000 (19:52 +0000)
committerLuigi Rizzo <rizzo@icir.org>
Mon, 23 Oct 2006 19:52:43 +0000 (19:52 +0000)
commita31aa6f320e9451c33f2299e910ead78ef71b0bd
tree8cd2e8ad3d576804bbf9970187bd121d075754ab
parentf1c2342c9641f1b0f0d0a46614ee886e5054ff3c
get_header() always returns a non-NULL value, so checking
for NULL is certainly wrong and usually disables the
checks that we want to make instead.

This commit fixes a number of the above bugs where the result
of get_header() is immediately checked for NULL.

This is certainly a candidate for merging into 1.4

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