From: Phil Sutter Date: Mon, 21 Aug 2017 09:27:04 +0000 (+0200) Subject: tc/q_multiq: Don't pass garbage in TCA_OPTIONS X-Git-Tag: v4.13.0~41 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=82ed9ffa2bb86eea653f68a0ade945b7708818c9;p=thirdparty%2Fiproute2.git tc/q_multiq: Don't pass garbage in TCA_OPTIONS 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 --- diff --git a/tc/q_multiq.c b/tc/q_multiq.c index 782393149..9c09c9a77 100644 --- a/tc/q_multiq.c +++ b/tc/q_multiq.c @@ -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) {