Skip to content

Commit

Permalink
ratelimit: initialize the length of the algorithm
Browse files Browse the repository at this point in the history
  • Loading branch information
razvancrainea committed May 4, 2016
1 parent 616b2ba commit 0eebf10
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/ratelimit/ratelimit_helper.c
Expand Up @@ -227,6 +227,7 @@ int init_rl_table(unsigned int size)
LM_ERR("Default algorithm was not specified\n");
return -1;
}
rl_default_algo_s.len = strlen(rl_default_algo_s.s);
/* resolve the default algorithm */
rl_default_algo = get_rl_algo(rl_default_algo_s);
if (rl_default_algo == PIPE_ALGO_NOP) {
Expand Down

0 comments on commit 0eebf10

Please sign in to comment.