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
Showing
- res/res_pjsip_nat.c 5 additions, 5 deletionsres/res_pjsip_nat.c
- res/res_pjsip_transport_websocket.c 1 addition, 1 deletionres/res_pjsip_transport_websocket.c
- third-party/pjproject/patches/0070-fix-incorrect-copying-when-creating-cancel.patch 37 additions, 0 deletions...hes/0070-fix-incorrect-copying-when-creating-cancel.patch
Loading
Please register or sign in to comment