From 2a8858a3a2f900d11b3dc0f6df5c09e953ffa5cf Mon Sep 17 00:00:00 2001 From: John Crispin Date: Wed, 22 Feb 2023 09:41:48 +0100 Subject: [PATCH] uspot: fix an exception in the idle timeout handler Fixes: WIFI-12282 Signed-off-by: John Crispin --- feeds/ucentral/uspot/files/usr/share/uspot/accounting.uc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/feeds/ucentral/uspot/files/usr/share/uspot/accounting.uc b/feeds/ucentral/uspot/files/usr/share/uspot/accounting.uc index 4d0ab44ce..f0ceb270c 100755 --- a/feeds/ucentral/uspot/files/usr/share/uspot/accounting.uc +++ b/feeds/ucentral/uspot/files/usr/share/uspot/accounting.uc @@ -64,7 +64,7 @@ function radius_stop(mac, payload, remove) { if (!radius_available(mac)) return; debug(mac, 'stopping accounting'); - ubus.call('spotfilter', client_remove ? 'client_remove' : 'client_set', payload); + ubus.call('spotfilter', remove ? 'client_remove' : 'client_set', payload); system('conntrack -D -s ' + clients[mac].ip4addr + ' -m 2'); if (clients[mac].accounting) clients[mac].timeout.cancel();