[sr-dev] git:master:b672d8ef: tm: reset T_ASYNC_CONTINUE once t_continue() callback is executed

Daniel-Constantin Mierla miconda at gmail.com
Wed Sep 6 11:20:09 CEST 2017


Module: kamailio
Branch: master
Commit: b672d8ef63715cf816390a05ce7a441377c3e468
URL: https://github.com/kamailio/kamailio/commit/b672d8ef63715cf816390a05ce7a441377c3e468

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2017-09-06T11:13:16+02:00

tm: reset T_ASYNC_CONTINUE once t_continue() callback is executed

- by having it still set, the reply field was not reset, causing to free
  an invalid pointer when transaction was destroyed, reported by Vitaliy
  Aleksandrov
- set reply of suspended request branch to FAKED_REPLY on continue,
  the code was already set to 500 - make it coherent with the local
  replied transactions
- reset cloned reply under lock for suspended reply branch and free it
  later via backup pointer - safer if someone risks to access the
  suspended reply branch (should happen now, just future proof)

---

Modified: src/modules/tm/t_suspend.c

---

Diff:  https://github.com/kamailio/kamailio/commit/b672d8ef63715cf816390a05ce7a441377c3e468.diff
Patch: https://github.com/kamailio/kamailio/commit/b672d8ef63715cf816390a05ce7a441377c3e468.patch




More information about the sr-dev mailing list