[OpenSIPS-Devel] [OpenSIPS/opensips] 52e2bc: registrars: Fix an edge-case with lookup("r")

Liviu Chircu noreply at github.com
Fri Nov 4 09:17:28 UTC 2022


  Branch: refs/heads/3.2
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 52e2bcb10276b2170164cf76dc1ac717923273dc
      https://github.com/OpenSIPS/opensips/commit/52e2bcb10276b2170164cf76dc1ac717923273dc
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2022-11-04 (Fri, 04 Nov 2022)

  Changed paths:
    M lib/reg/lookup.c

  Log Message:
  -----------
  registrars: Fix an edge-case with lookup("r")

This fixes a bug where the registrar library would return
E_LOOKUP_NO_RESULTS upon encountering an AoR with 0 contacts, instead of
continuing to walk the branches and expand the remaining AoRs.

Many thanks to @MayamaTakeshi for a detailed bug report!
Fixes #2917

(cherry picked from commit 9ac7739ef02079a22de6beb776d6a1628a4458cb)


  Commit: 65d7b7ba36d9e898de3b3a527a07841594e8ed9d
      https://github.com/OpenSIPS/opensips/commit/65d7b7ba36d9e898de3b3a527a07841594e8ed9d
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2022-11-04 (Fri, 04 Nov 2022)

  Changed paths:
    M modules/registrar/test/test.c

  Log Message:
  -----------
  registrar: Add a unit test for lookup("r")

Related to #2917

(cherry picked from commit 02ddcc6cc52e6c27d27870447c4df7a352508a75)


Compare: https://github.com/OpenSIPS/opensips/compare/ad6a2b74c55c...65d7b7ba36d9



More information about the Devel mailing list