diff options
author | Kozlov Dmitry <xeb@mail.ru> | 2013-11-02 22:58:18 +0400 |
---|---|---|
committer | Kozlov Dmitry <xeb@mail.ru> | 2013-11-02 22:58:24 +0400 |
commit | 03b2f3ab32112b85c8aacc7057f3e8da0f09c82d (patch) | |
tree | c74adca1537bd3f775ed40213ae27ed0a9e4cb69 | |
parent | f0abb041cf94f620c22987bab1ab4a49645141af (diff) | |
download | accel-ppp-03b2f3ab32112b85c8aacc7057f3e8da0f09c82d.tar.gz accel-ppp-03b2f3ab32112b85c8aacc7057f3e8da0f09c82d.zip |
shaper: fixed socket leak
Close netlink socket in remove_limiter function.
Signed-off-by: Kozlov Dmitry <xeb@mail.ru>
-rw-r--r-- | accel-pppd/shaper/limiter.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/accel-pppd/shaper/limiter.c b/accel-pppd/shaper/limiter.c index 5a3142bd..43637f8a 100644 --- a/accel-pppd/shaper/limiter.c +++ b/accel-pppd/shaper/limiter.c @@ -464,6 +464,8 @@ int remove_limiter(struct ppp_t *ppp) if (conf_up_limiter == LIM_HTB) remove_htb_ifb(&rth, ppp->ifindex, ppp->unit_idx + 1); + rtnl_close(&rth); + return 0; } |