This commit is contained in:
dmtar 2025-06-04 14:52:05 +01:00
parent 444a0c2415
commit 49d2491d57
1 changed files with 7 additions and 3 deletions

View File

@ -615,12 +615,16 @@ static int rsu_handle_recv(EI1_TPM_t* tpm_rx, void** security_socket, uint8_t* n
break;
}
int known_id = 0;
for (int i = 0; i < facilities.tolling.infos.length; i++) {
if (info_id != facilities.tolling.z[i]->asn->id) {
log_warn("[tolling] received TPM has unkown info_id");
return 1;
if (info_id != facilities.tolling.infos.z[i]->asn->id) {
known_id = 1;
}
}
if (!known_id) {
log_warn("[tolling] received TPM has unkown info_id");
return 1;
}
asn_enc_rval_t enc;
EIS_NetworkingRequest_t* nr = NULL;