Missing memset in tc sample
This commit is contained in:
parent
49843e291d
commit
f3b1006c73
|
|
@ -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>
|
2006-03-10 shemminger <shemminger@osdl.org>
|
||||||
|
|
||||||
* Change default lnstat count to 1
|
* Change default lnstat count to 1
|
||||||
|
|
|
||||||
|
|
@ -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_sel sel;
|
||||||
struct tc_u32_key keys[4];
|
struct tc_u32_key keys[4];
|
||||||
} sel2;
|
} sel2;
|
||||||
|
memset(sel2, 0, sizeof(sel32));
|
||||||
NEXT_ARG();
|
NEXT_ARG();
|
||||||
if (parse_selector(&argc, &argv, &sel2.sel, n)) {
|
if (parse_selector(&argc, &argv, &sel2.sel, n)) {
|
||||||
fprintf(stderr, "Illegal \"sample\"\n");
|
fprintf(stderr, "Illegal \"sample\"\n");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue