Skip to content

Commit

Permalink
acc: exit if bad parameters are set for a variable
Browse files Browse the repository at this point in the history
Fixes coverity tag 150513
  • Loading branch information
razvancrainea committed Oct 21, 2016
1 parent 0c88ac7 commit 9889ef7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/acc/acc_vars.c
Expand Up @@ -196,6 +196,7 @@ int pv_set_acc_extra(struct sip_msg *msg, pv_param_t *param, int op,

if (param == NULL || val == NULL) {
LM_ERR("bad params!\n");
return -1;
}

if (ctx == NULL) {
Expand Down

0 comments on commit 9889ef7

Please sign in to comment.