Skip to content

Commit

Permalink
mod_fix: fill elems structure for params NULL fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
razvancrainea committed Apr 4, 2019
1 parent fa61553 commit 2e1a266
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mod_fix.c
Expand Up @@ -110,7 +110,7 @@ int fix_cmd(struct cmd_param *params, action_elem_t *elems)
gp->type = GPARAM_TYPE_FIXUP;
}

continue;
goto fill_elems;
} else {
LM_BUG("Mandatory parameter missing\n");
ret = E_BUG;
Expand Down Expand Up @@ -257,6 +257,7 @@ int fix_cmd(struct cmd_param *params, action_elem_t *elems)
goto error;
}

fill_elems:
elems[i].u.data = (void*)gp;
}

Expand Down

0 comments on commit 2e1a266

Please sign in to comment.