From 2e1a266765b93cd332c9bcbead084940db5512e0 Mon Sep 17 00:00:00 2001 From: Razvan Crainea Date: Thu, 4 Apr 2019 18:30:20 +0300 Subject: [PATCH] mod_fix: fill elems structure for params NULL fixup --- mod_fix.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; }