Skip to content

Commit

Permalink
load_balancer: Zero resource buffer during parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
liviuchircu committed Feb 9, 2017
1 parent f91b270 commit 27370bf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/load_balancer/lb_parser.c
Expand Up @@ -117,6 +117,7 @@ struct lb_res_str_list *parse_resources_list(char *r_list, int has_val)
LM_ERR("no more pkg memory\n");
goto error;
}
memset(lb_rl+1, 0, n * sizeof(struct lb_res_str) + len);

/* init the strucuture */
lb_rl->n = n;
Expand Down

0 comments on commit 27370bf

Please sign in to comment.