Skip to content

Commit

Permalink
Fix detection of forward() usage when called without parameter
Browse files Browse the repository at this point in the history
This would cause stateless replies to no be forwared even though the
forward function was used.
  • Loading branch information
rvlad-patrascu committed Nov 26, 2020
1 parent e8a7cad commit 8aab9f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core_cmds.c
Expand Up @@ -124,7 +124,7 @@ static int w_is_myself(struct sip_msg *msg, str *host, int *port);

static cmd_export_t core_cmds[]={
{"forward", (cmd_function)w_forward, {
{CMD_PARAM_STR|CMD_PARAM_OPT,
{CMD_PARAM_STR|CMD_PARAM_OPT|CMD_PARAM_FIX_NULL,
fixup_forward_dest, fixup_free_destination}, {0,0,0}},
ALL_ROUTES},
{"send", (cmd_function)w_send, {
Expand Down

0 comments on commit 8aab9f2

Please sign in to comment.