Skip to content
Snippets Groups Projects
  • Pirmin Walthert's avatar
    7a6cfde4
    res_pjsip_nat.c: Create deep copies of strings when appropriate · 7a6cfde4
    Pirmin Walthert authored
    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
    7a6cfde4
    History
    res_pjsip_nat.c: Create deep copies of strings when appropriate
    Pirmin Walthert authored
    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