Skip to content

Commit

Permalink
pdt: return 0 when add_to_tree() detect duplicated prefix with pdt mo…
Browse files Browse the repository at this point in the history
…de 1

- GH #3626
  • Loading branch information
miconda committed Nov 2, 2023
1 parent d918930 commit ef5e889
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/pdt/pdtree.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ int add_to_tree(pdt_tree_t *pt, str *sp, str *sd)
if(_pdt_mode & 1) {
LM_DBG("prefix already allocated [%.*s/[%.*s] - ignoring\n",
sp->len, sp->s, sd->len, sd->s);
return -1;
return 0;
} else {
LM_ERR("prefix already allocated [%.*s/[%.*s]\n", sp->len, sp->s,
sd->len, sd->s);
Expand Down

0 comments on commit ef5e889

Please sign in to comment.