Skip to content
Permalink
Browse files

Fix building blacklist's name when using partitions

Do not include the partition name in the name of the blacklist

(cherry picked from commit d11ba50)
  • Loading branch information
bogdan-iancu committed Mar 12, 2019
1 parent 11aebde commit 0bc8bf3a729bc2117f3ea849412f583d4913b204
Showing with 3 additions and 3 deletions.
  1. +3 −3 modules/drouting/dr_bl.c
@@ -110,19 +110,19 @@ int init_dr_bls(struct head_db * head_db_start)
it_blk->def);
return -1;
}

name.s = p+1;
} else {
current_partition = head_db_start;
if( current_partition == 0 ) {
LM_CRIT("Default partition not registered\n");
}
name.s = it_blk->def;
}
p = strchr( it_blk->def, '=');
p = strchr( name.s, '=');
if (p==NULL || p== it_blk->def) {
LM_ERR("blacklist definition <%s> has no name",it_blk->def);
return -1;
}
name.s = it_blk->def;
name.len = p - name.s;
trim(&name);
if (name.len==0) {

0 comments on commit 0bc8bf3

Please sign in to comment.
You can’t perform that action at this time.