Skip to content

Commit

Permalink
modparam: allow both int and strings as parameters when function is used
Browse files Browse the repository at this point in the history
  • Loading branch information
razvancrainea committed Jun 15, 2020
1 parent 817df75 commit 78c3ef0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modparam.c
Expand Up @@ -79,7 +79,7 @@ int set_mod_param_regex(char* regex, char* name, modparam_t type, void* val)
if (strcmp(name, param->name) == 0) {
param_found = 1;

if (PARAM_TYPE_MASK(param->type) == type) {
if (PARAM_TYPE_MASK(param->type) & type) {
LM_DBG("found <%s> in module %s [%s]\n",
name, t->exports->name, t->path);

Expand Down

0 comments on commit 78c3ef0

Please sign in to comment.