[OpenSIPS-Devel] [OpenSIPS/opensips] 4c54d0: 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.3
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 4c54d0f773ecacff8edc6dc4c92515560b35dd4a
      https://github.com/OpenSIPS/opensips/commit/4c54d0f773ecacff8edc6dc4c92515560b35dd4a
  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: 2da07e40c6847eef6bf28ec240cf3337065146ee
      https://github.com/OpenSIPS/opensips/commit/2da07e40c6847eef6bf28ec240cf3337065146ee
  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/efd4ca29e022...2da07e40c684



More information about the Devel mailing list