Blame SOURCES/0096-tc-q_multiq-Don-t-pass-garbage-in-TCA_OPTIONS.patch

99be8f
From 8a115584261b32308d604063b56f25330ce8adaf Mon Sep 17 00:00:00 2001
99be8f
From: Andrea Claudi <aclaudi@redhat.com>
99be8f
Date: Mon, 29 Apr 2019 20:08:07 +0200
99be8f
Subject: [PATCH] tc/q_multiq: Don't pass garbage in TCA_OPTIONS
99be8f
99be8f
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1465646
99be8f
Upstream Status: iproute2.git commit 82ed9ffa2bb86
99be8f
99be8f
commit 82ed9ffa2bb86eea653f68a0ade945b7708818c9
99be8f
Author: Phil Sutter <phil@nwl.cc>
99be8f
Date:   Mon Aug 21 11:27:04 2017 +0200
99be8f
99be8f
    tc/q_multiq: Don't pass garbage in TCA_OPTIONS
99be8f
99be8f
    multiq_parse_opt() doesn't change 'opt' at all. So at least make sure
99be8f
    it doesn't fill TCA_OPTIONS attribute with garbage from stack.
99be8f
99be8f
    Signed-off-by: Phil Sutter <phil@nwl.cc>
99be8f
---
99be8f
 tc/q_multiq.c | 2 +-
99be8f
 1 file changed, 1 insertion(+), 1 deletion(-)
99be8f
99be8f
diff --git a/tc/q_multiq.c b/tc/q_multiq.c
99be8f
index 7823931494563..9c09c9a7748f6 100644
99be8f
--- a/tc/q_multiq.c
99be8f
+++ b/tc/q_multiq.c
99be8f
@@ -43,7 +43,7 @@ static void explain(void)
99be8f
 static int multiq_parse_opt(struct qdisc_util *qu, int argc, char **argv,
99be8f
 			    struct nlmsghdr *n)
99be8f
 {
99be8f
-	struct tc_multiq_qopt opt;
99be8f
+	struct tc_multiq_qopt opt = {};
99be8f
 
99be8f
 	if (argc) {
99be8f
 		if (strcmp(*argv, "help") == 0) {
99be8f
-- 
99be8f
2.20.1
99be8f