Skip to content

Commit b4dd4f9

Browse files
th_use_param.len recomputing
1 parent 8a6a1b6 commit b4dd4f9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

modules/topology_hiding/topology_hiding.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,8 +237,8 @@ static int mod_init(void)
237237
LM_ERR("cannot register callback for dialog loaded - topology "
238238
"hiding signalling for ongoing calls will be lost after "
239239
"restart\n");
240-
241-
if (th_set_use_param(&th_use_param) < 0) {
240+
th_use_param.len = strlen(th_use_param.s);
241+
if (th_set_use_param(&th_use_param) <= 0) {
242242
LM_ERR("Param '%.*s' not in options\n", th_use_param.len, th_use_param.s);
243243
return -1;
244244
}

0 commit comments

Comments
 (0)