uspot: handle_request: abort on spotfilter error

Signed-off-by: Thibaut VARÈNE <hacks@slashdirt.org>
This commit is contained in:
Thibaut VARÈNE
2023-06-01 14:39:44 +02:00
committed by John Crispin
parent 56549a44ea
commit cf2f80fd3c

View File

@@ -281,6 +281,13 @@ return {
address: ctx.mac, address: ctx.mac,
}); });
// stop if spotfilter doesn't reply
if (!connected) {
this.syslog(ctx, 'spotfilter error');
include('error.uc', ctx);
return NULL;
}
if (!uam && connected?.state) { if (!uam && connected?.state) {
include('connected.uc', ctx); include('connected.uc', ctx);
return; return;