]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
tc/q_multiq: Don't pass garbage in TCA_OPTIONS
authorPhil Sutter <phil@nwl.cc>
Mon, 21 Aug 2017 09:27:04 +0000 (11:27 +0200)
committerStephen Hemminger <stephen@networkplumber.org>
Tue, 22 Aug 2017 00:17:00 +0000 (17:17 -0700)
multiq_parse_opt() doesn't change 'opt' at all. So at least make sure
it doesn't fill TCA_OPTIONS attribute with garbage from stack.

Signed-off-by: Phil Sutter <phil@nwl.cc>
tc/q_multiq.c

index 782393149456346c6914934dbc9af7d64ad4bfdd..9c09c9a7748f631e72af6ea14741c1ceb980e204 100644 (file)
@@ -43,7 +43,7 @@ static void explain(void)
 static int multiq_parse_opt(struct qdisc_util *qu, int argc, char **argv,
                            struct nlmsghdr *n)
 {
-       struct tc_multiq_qopt opt;
+       struct tc_multiq_qopt opt = {};
 
        if (argc) {
                if (strcmp(*argv, "help") == 0) {