Commit 86184dfb authored by Matthijs Mekking's avatar Matthijs Mekking 🏡 Committed by Ondřej Surý

Suppress cppcheck false positive nullPointerRedundantCheck

parent b54eeb12
......@@ -3088,7 +3088,9 @@ resign_fromlist(dns_rdatalist_t *this, dns_loadctx_t *lctx) {
else
when = sig.timeexpire - lctx->resign;
/* cppcheck-suppress nullPointerRedundantCheck */
rdata = ISC_LIST_NEXT(rdata, link);
/* cppcheck-suppress nullPointerRedundantCheck */
while (rdata != NULL) {
(void)dns_rdata_tostruct(rdata, &sig, NULL);
if (isc_serial_gt(sig.timesigned, lctx->now))
......
......@@ -50,7 +50,9 @@ recv_length(isc_task_t *task, isc_event_t *ev_in) {
INSIST(VALID_TCPMSG(tcpmsg));
dev = &tcpmsg->event;
/* cppcheck-suppress nullPointerRedundantCheck */
tcpmsg->address = ev->address;
/* cppcheck-suppress nullPointerRedundantCheck */
if (ev->result != ISC_R_SUCCESS) {
tcpmsg->result = ev->result;
......
......@@ -137,7 +137,9 @@ isccc_alist_delete(isccc_sexpr_t *alist, const char *key)
INSIST(rest->type == ISCCC_SEXPRTYPE_DOTTEDPAIR);
car = CAR(rest);
INSIST(car != NULL && car->type == ISCCC_SEXPRTYPE_DOTTEDPAIR);
/* cppcheck-suppress nullPointerRedundantCheck */
caar = CAR(car);
/* cppcheck-suppress nullPointerRedundantCheck */
if (caar->type == ISCCC_SEXPRTYPE_STRING &&
strcmp(caar->value.as_string, key) == 0) {
CDR(prev) = CDR(rest);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment