-/* $OpenBSD: main.c,v 1.260 2024/06/08 13:31:38 tb Exp $ */
+/* $OpenBSD: main.c,v 1.261 2024/07/12 08:54:48 claudio Exp $ */
/*
* Copyright (c) 2021 Claudio Jeker <claudio@openbsd.org>
* Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
time_t mtime;
unsigned int id;
int talid;
- int c;
+ int ok = 1;
/*
* For most of these, we first read whether there's any content
tal_free(tal);
break;
case RTYPE_CER:
- io_read_buf(b, &c, sizeof(c));
- if (c == 0) {
+ io_read_buf(b, &ok, sizeof(ok));
+ if (ok == 0) {
repo_stat_inc(rp, talid, type, STYPE_FAIL);
break;
}
cert_free(cert);
break;
case RTYPE_MFT:
- io_read_buf(b, &c, sizeof(c));
- if (c == 0) {
+ io_read_buf(b, &ok, sizeof(ok));
+ if (ok == 0) {
repo_stat_inc(rp, talid, type, STYPE_FAIL);
break;
}
entity_queue++;
break;
case RTYPE_ROA:
- io_read_buf(b, &c, sizeof(c));
- if (c == 0) {
+ io_read_buf(b, &ok, sizeof(ok));
+ if (ok == 0) {
repo_stat_inc(rp, talid, type, STYPE_FAIL);
break;
}
case RTYPE_GBR:
break;
case RTYPE_ASPA:
- io_read_buf(b, &c, sizeof(c));
- if (c == 0) {
+ io_read_buf(b, &ok, sizeof(ok));
+ if (ok == 0) {
repo_stat_inc(rp, talid, type, STYPE_FAIL);
break;
}
aspa_free(aspa);
break;
case RTYPE_SPL:
- io_read_buf(b, &c, sizeof(c));
- if (c == 0) {
+ io_read_buf(b, &ok, sizeof(ok));
+ if (ok == 0) {
if (experimental)
repo_stat_inc(rp, talid, type, STYPE_FAIL);
break;