]> git.ipfire.org Git - thirdparty/iproute2.git/commit
tc: fill in handle before checking argc
authorWANG Cong <xiyou.wangcong@gmail.com>
Tue, 5 May 2015 22:30:20 +0000 (15:30 -0700)
committerStephen Hemminger <shemming@brocade.com>
Mon, 11 May 2015 16:13:20 +0000 (09:13 -0700)
commit285e7768e865a9061ee6a6a92e96a0ce041f5789
treeeafb40885817c97b4c83f74db62d5c1cd2a97dd2
parentf7dd7e5e713d5820da2ad5cbd3fa88286e20d4f1
tc: fill in handle before checking argc

When deleting a specific basic filter with handle,
tc command always ignores the 'handle' option, so
tcm_handle is always 0 and kernel deletes all filters
in the selected group. This is wrong, we should respect
'handle' in cmdline.

Cc: Jamal Hadi Salim <jhs@mojatatu.com>
Cc: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
tc/f_basic.c