[OpenSIPS-Devel] [OpenSIPS/opensips] 240b96: drouting: Tolerate a NULL dr_rules.gwlist

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


  Branch: refs/heads/2.4
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 240b96caae44b548402119d715304ae84e030cc6
      https://github.com/OpenSIPS/opensips/commit/240b96caae44b548402119d715304ae84e030cc6
  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