diff options
author | Kozlov Dmitry <xeb@mail.ru> | 2013-11-02 22:58:18 +0400 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2013-11-02 23:00:16 +0400 |
commit | f319ff850895cebe92540fbc56c71effe8490add (patch) | |
tree | a69e11284ee5581640d523fe80683427fd2ce966 /accel-pppd | |
parent | e86e4d1ab8c96a8614dc238a6f4386697d30d6b5 (diff) | |
download | accel-ppp-f319ff850895cebe92540fbc56c71effe8490add.tar.gz accel-ppp-f319ff850895cebe92540fbc56c71effe8490add.zip |
shaper: fixed socket leak
Close netlink socket in remove_limiter function.
Signed-off-by: Kozlov Dmitry <xeb@mail.ru>
Diffstat (limited to 'accel-pppd')
-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 15eef19..9f89ba7 100644 --- a/accel-pppd/shaper/limiter.c +++ b/accel-pppd/shaper/limiter.c @@ -464,6 +464,8 @@ int remove_limiter(struct ap_session *ses) if (conf_up_limiter == LIM_HTB) remove_htb_ifb(&rth, ses->ifindex, ses->unit_idx + 1); + rtnl_close(&rth); + return 0; } |