diff --git a/mod_fix.c b/mod_fix.c index b4780eb9afb..5cc208a1dc4 100644 --- a/mod_fix.c +++ b/mod_fix.c @@ -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; @@ -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; }