diff options
author | site!shemminger <site!shemminger> | 2005-03-14 22:19:16 +0000 |
---|---|---|
committer | site!shemminger <site!shemminger> | 2005-03-14 22:19:16 +0000 |
commit | c1027a759bb9e08ea5711ea8bc7f86ec49062951 (patch) | |
tree | b8eea47ed87e4a97d67cd9eaef9d39677bce743b /tc/tc_class.c | |
parent | 28fb99c4416309bf57c30626cd01ebcc6081773e (diff) |
Fix batch mode handle usage.
(Logical change 1.169)
Diffstat (limited to 'tc/tc_class.c')
-rw-r--r-- | tc/tc_class.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/tc/tc_class.c b/tc/tc_class.c index e84112d0..c4b27ebf 100644 --- a/tc/tc_class.c +++ b/tc/tc_class.c @@ -228,7 +228,6 @@ static int print_class(const struct sockaddr_nl *who, int tc_class_list(int argc, char **argv) { struct tcmsg t; - struct rtnl_handle rth; char d[16]; memset(&t, 0, sizeof(t)); @@ -283,13 +282,11 @@ int tc_class_list(int argc, char **argv) if (rtnl_dump_request(&rth, RTM_GETTCLASS, &t, sizeof(t)) < 0) { perror("Cannot send dump request"); - rtnl_close(&rth); return 1; } if (rtnl_dump_filter(&rth, print_class, stdout, NULL, NULL) < 0) { fprintf(stderr, "Dump terminated\n"); - rtnl_close(&rth); return 1; } |