[OpenSIPS-Devel] [OpenSIPS/opensips] 16b47f: Fix t_reply_with_body() when called after t_newtran()

Bogdan Andrei IANCU noreply at github.com
Tue Mar 12 03:33:13 EDT 2019


  Branch: refs/heads/2.4
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 16b47f04fd020921e3011678e1eaf854629b9f6b
      https://github.com/OpenSIPS/opensips/commit/16b47f04fd020921e3011678e1eaf854629b9f6b
  Author: Bogdan-Andrei Iancu <bogdan at opensips.org>
  Date:   2019-03-12 (Tue, 12 Mar 2019)

  Changed paths:
    M modules/tm/t_reply.c

  Log Message:
  -----------
  Fix t_reply_with_body() when called after t_newtran()

Force an update of the cloned request (from transaction) with info from the real request before internally running t_reply_with_body(). As t_reply_with_body() works with the cloned request, we need to be sure it is up-2-date; and t_newtran() does a partial cloning of the requests - so, if the transaction already exists better update its cloned request to be sure it has all data.
Credits for detailed reporting to @rrb3942
Closes #1632

(cherry picked from commit 00a3ab348b0400fc63d25f742916ec65602f7e3f)





More information about the Devel mailing list