Skip to content

Commit 4db9413

Browse files
Fix detection of forward() usage when called without parameter
This would cause stateless replies to no be forwared even though the forward function was used. (cherry picked from commit 8aab9f2)
1 parent 75cfd7e commit 4db9413

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core_cmds.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ static int w_is_myself(struct sip_msg *msg, str *host, int *port);
124124

125125
static cmd_export_t core_cmds[]={
126126
{"forward", (cmd_function)w_forward, {
127-
{CMD_PARAM_STR|CMD_PARAM_OPT,
127+
{CMD_PARAM_STR|CMD_PARAM_OPT|CMD_PARAM_FIX_NULL,
128128
fixup_forward_dest, fixup_free_destination}, {0,0,0}},
129129
ALL_ROUTES},
130130
{"send", (cmd_function)w_send, {

0 commit comments

Comments
 (0)