mirror of
https://git.proxmox.com/git/mirror_iproute2
synced 2025-11-03 17:47:53 +00:00
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:
parent
d304b05c12
commit
82ed9ffa2b
@ -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) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user