]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip_nat.c: Create deep copies of strings when appropriate
authorPirmin Walthert <infos@nappsoft.ch>
Tue, 8 Dec 2020 17:37:13 +0000 (18:37 +0100)
committerGeorge Joseph <gjoseph@digium.com>
Thu, 17 Dec 2020 15:10:54 +0000 (09:10 -0600)
commit7a6cfde4db0b438a024c138bd16e67fd98ba2291
tree638cfcc986415da515963b24c0df772d0efa2f12
parentccb4951bf801f05f7efdcf3aa7619cae0b1f6351
res_pjsip_nat.c: Create deep copies of strings when appropriate

In rewrite_uri asterisk was not making deep copies of strings when
changing the uri. This was in some cases causing garbage in the route
header and in other cases even crashing asterisk when receiving a
message with a record-route header set. Thanks to Ralf Kubis for
pointing out why this happens. A similar problem was found in
res_pjsip_transport_websocket.c. Pjproject needs as well to be patched
to avoid garbage in CANCEL messages.

ASTERISK-29024 #close

Change-Id: Ic5acd7fa2fbda3080f5f36ef12e46804939b198b
res/res_pjsip_nat.c
res/res_pjsip_transport_websocket.c
third-party/pjproject/patches/0070-fix-incorrect-copying-when-creating-cancel.patch [new file with mode: 0644]