[OpenSIPS-Devel] [OpenSIPS/opensips] 0b19f6: drouting: Tolerate a NULL dr_rules.gwlist

Liviu Chircu noreply at github.com
Fri Jan 29 06:38:20 EST 2021


  Branch: refs/heads/3.1
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 0b19f68e5f99361f3ef05b6be5e281a7a70bf1a5
      https://github.com/OpenSIPS/opensips/commit/0b19f68e5f99361f3ef05b6be5e281a7a70bf1a5
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2021-01-29 (Fri, 29 Jan 2021)

  Changed paths:
    M modules/drouting/dr_load.c

  Log Message:
  -----------
  drouting: Tolerate a NULL dr_rules.gwlist

In build_rt_info(), there is a NULL check anyway:

    if ( dstlst && dstlst[0]!=0 ) {

... so this patch can only do good, by making the code compatible with
even more flavours of the `dr_rules` table.

(cherry picked from commit a764ea3e6827b17b8125afb58fa9beabd627022b)





More information about the Devel mailing list