Skip to content

Commit

Permalink
[drouting] removed useless code
Browse files Browse the repository at this point in the history
Makes no sense to select the table at db_con init time, as various queries (from various modules) may set and use different tables.

Related to coverity report CID 58405
  • Loading branch information
bogdan-iancu committed Jul 15, 2020
1 parent 11e63b3 commit ab7d443
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions modules/drouting/drouting.c
Expand Up @@ -1919,13 +1919,6 @@ static int db_load_head(struct head_db *x) {
x->partition.s, x->db_url.len, x->db_url.s, x->db_url.len);
return -1;
}
if( x->db_con && *(x->db_con) &&
x->db_funcs.use_table( *(x->db_con), &(x->drg_table)) <0 ) {
LM_ERR("cannot select table (partition:%.*s, drg_table:%.*s\n",
x->partition.len, x->partition.s, (x->drg_table).len,
(x->drg_table).s);
return -1;
}
return 0;
}

Expand Down

0 comments on commit ab7d443

Please sign in to comment.