Missing memset in tc sample

This commit is contained in:
shemminger 2006-03-10 23:27:13 +00:00
parent 49843e291d
commit f3b1006c73
2 changed files with 5 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2006-03-10 Russell Stuart <russell-lartc@stuart.id.au>
* Fix missing memset in tc sample
2006-03-10 shemminger <shemminger@osdl.org>
* Change default lnstat count to 1

View File

@ -878,6 +878,7 @@ static int u32_parse_opt(struct filter_util *qu, char *handle, int argc, char **
struct tc_u32_sel sel;
struct tc_u32_key keys[4];
} sel2;
memset(sel2, 0, sizeof(sel32));
NEXT_ARG();
if (parse_selector(&argc, &argv, &sel2.sel, n)) {
fprintf(stderr, "Illegal \"sample\"\n");