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 <phil@nwl.cc>
This commit is contained in:
Phil Sutter 2017-08-21 11:27:04 +02:00 committed by Stephen Hemminger
parent d304b05c12
commit 82ed9ffa2b
1 changed files with 1 additions and 1 deletions

View File

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