diff options
Diffstat (limited to 'src/libwpactrl/wpactrl_xchg_timeout.c')
-rw-r--r-- | src/libwpactrl/wpactrl_xchg_timeout.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libwpactrl/wpactrl_xchg_timeout.c b/src/libwpactrl/wpactrl_xchg_timeout.c index 01907ea..fd99390 100644 --- a/src/libwpactrl/wpactrl_xchg_timeout.c +++ b/src/libwpactrl/wpactrl_xchg_timeout.c @@ -4,11 +4,12 @@ #include <skalibs/tai.h> #include <bcnm/wpactrl.h> -int wpactrl_xchg_timeout (wpactrl_xchg_t *dt, tain_t const *stamp) +int wpactrl_xchg_timeout (wpactrl_t *a, wpactrl_xchg_t *dt, tain_t const *stamp) { if (!tain_less(stamp, &dt->deadline)) { dt->status = ETIMEDOUT ; + wpactrl_filter_remove(a, dt->tab[dt->i].filter) ; return 1 ; } else return 0 ; |