fix rsu tpm info id check; make TOLLING_PAYMENT_MIN_PERIOD_MS lower
This commit is contained in:
parent
49d2491d57
commit
9726c65cca
|
|
@ -617,12 +617,12 @@ static int rsu_handle_recv(EI1_TPM_t* tpm_rx, void** security_socket, uint8_t* n
|
|||
|
||||
int known_id = 0;
|
||||
for (int i = 0; i < facilities.tolling.infos.length; i++) {
|
||||
if (info_id != facilities.tolling.infos.z[i]->asn->id) {
|
||||
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");
|
||||
log_warn("[tolling] received TPM has unkown info_id (%d)", info_id);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue