diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2019-01-22 06:26:33 +0300 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2019-01-22 06:26:33 +0300 |
commit | 7a08d2a9fd1dc942d5ac09d069eea258b1e0c7d8 (patch) | |
tree | 3471fe4d66bed3f152e53c33414322136a3cde0f /accel-pppd/shaper/shaper.c | |
parent | 40859ae196897a8c7a835944188e7d41c484a765 (diff) | |
download | accel-ppp-7a08d2a9fd1dc942d5ac09d069eea258b1e0c7d8.tar.gz accel-ppp-7a08d2a9fd1dc942d5ac09d069eea258b1e0c7d8.zip |
shaper: small fix for previous commit
Diffstat (limited to 'accel-pppd/shaper/shaper.c')
-rw-r--r-- | accel-pppd/shaper/shaper.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/accel-pppd/shaper/shaper.c b/accel-pppd/shaper/shaper.c index 74c01d0..304a129 100644 --- a/accel-pppd/shaper/shaper.c +++ b/accel-pppd/shaper/shaper.c @@ -375,12 +375,15 @@ static int check_radius_attrs(struct shaper_pd_t *pd, struct rad_packet_t *pack) tr_pd->up_burst = up_burst; } + if (!r) + return 0; + if (!pd->cur_tr) pd->cur_tr = get_tr_pd(pd, 0); clear_old_tr_pd(pd); - return r; + return 1; } static void ev_radius_access_accept(struct ev_radius_t *ev) |