diff options
-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 74c01d08..304a129e 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) |