Skip to content

Commit

Permalink
[drouting] check if partition pvar is writable
Browse files Browse the repository at this point in the history
  • Loading branch information
ionutrazvanionita committed Apr 5, 2016
1 parent 7551c66 commit cf0945c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions modules/drouting/drouting.c
Expand Up @@ -1199,6 +1199,11 @@ static int dr_init(void)
LM_ERR("malformed PV string: <<%s>>\n", partition_pvar.s);
return -1;
}

if (partition_spec.setf == NULL) {
LM_ERR("Partition_id_pvar is not WRITABLE!\n");
return -1;
}
}
} else {
init_db_url(db_url, 0);
Expand Down

0 comments on commit cf0945c

Please sign in to comment.