]> git.ipfire.org Git - thirdparty/asterisk.git/commit
bundled_pjproject: sip_parser: Fix return code in pjsip_find_msg
authorGeorge Joseph <gjoseph@digium.com>
Fri, 10 Nov 2017 16:37:16 +0000 (09:37 -0700)
committerGeorge Joseph <gjoseph@digium.com>
Mon, 13 Nov 2017 21:50:18 +0000 (14:50 -0700)
commitb5f2779a23aa6042893c2bdf6bebfcc5150b5300
tree8b738e665cdc3a7d6faad9c94f9b45d01eb531e4
parent1250b7c66401910f1b41f01b783725d9c99c7255
bundled_pjproject: sip_parser:  Fix return code in pjsip_find_msg

The default return code for pjsip_find_msg was PJ_SUCCESS so if
a Content-Length header wasn't found at all, pjsip_find_msg was
returning PJ_SUCCESS instead of PJSIP_EMISSINGHDR.

Also added the volatile keyword to a few variables that are used
both inside and outside the PJ_TRY/PJ_CATCH block.

Partial fix for ASTERISK_27408

Change-Id: If82ba9de921e3d57df9c68cf96ee45ccc1491f7a
third-party/pjproject/patches/0021-sip_parser-Fix-return-code-in-pjsip_find_msg-and-add.patch [new file with mode: 0644]