[OpenSIPS-Devel] [OpenSIPS/opensips] bbc7b7: mid_registrar: Fix mem management bugs around "max...

Liviu Chircu noreply at github.com
Fri Mar 6 16:50:58 UTC 2026


  Branch: refs/heads/3.4
  Home:   https://github.com/OpenSIPS/opensips
  Commit: bbc7b7486280ac7ee4bfc5eb25ba75fe93d5fd21
      https://github.com/OpenSIPS/opensips/commit/bbc7b7486280ac7ee4bfc5eb25ba75fe93d5fd21
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2026-03-06 (Fri, 06 Mar 2026)

  Changed paths:
    M modules/mid_registrar/save.c
    M modules/usrloc/kv_store.c

  Log Message:
  -----------
  mid_registrar: Fix mem management bugs around "max contacts"

* avoid UAF of the @uc pointer during iteration
* fix logic so that the current @c cannot be freed by trim_contacts()
    itself, yet again leading to UAF type of bugs

usrloc: Fix rare memleak edge-case
(cherry picked from commit 2642e14fb17fcc1ed24eab51bd0568bb743f51e2)
(cherry picked from commit 960ab38e850e915796bf3248ca00f72ab4e23f56)


  Commit: 9d14556ec974245f078f65cc9727ffbfd114f297
      https://github.com/OpenSIPS/opensips/commit/9d14556ec974245f078f65cc9727ffbfd114f297
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2026-03-06 (Fri, 06 Mar 2026)

  Changed paths:
    M lib/reg/common.c
    M lib/reg/common.h
    M lib/reg/doc/reg_modparams.xml
    M modules/mid_registrar/save.c
    M modules/registrar/save.c

  Log Message:
  -----------
  registrars: Allow accepting Re-REGISTERs with equal CSeq

New module setting for both registrar and mid-registrar which controls
the policy on handling same Call-ID REGISTERs, with the same CSeq.

    modparam: allow_dup_cseq
    default:  false (100% backwards-compatible)

Ultimately, this boils down to a trade-off between interoperability and
RFC strictness.  More info in the modparam documentation.

(cherry picked from commit dda9010efb6149c44a98cb2029215d0e28ee3f89)
(cherry picked from commit f47c2f47bb2393c33f5979a86747db82cf2e7b2b)


Compare: https://github.com/OpenSIPS/opensips/compare/314581187535...9d14556ec974

To unsubscribe from these emails, change your notification settings at https://github.com/OpenSIPS/opensips/settings/notifications



More information about the Devel mailing list