Skip to content

Commit

Permalink
core: dns cache - check pointer and small formatting
Browse files Browse the repository at this point in the history
(cherry picked from commit 611cfed)
  • Loading branch information
miconda committed Jan 6, 2023
1 parent fecfac4 commit fc2f1b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/dns_cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -4399,8 +4399,8 @@ int dns_cache_add_record(unsigned short type,
}

if (!rr_p) {
for ( rr_p = rr_iter;
*rr_p && (*rr_p != new_rr);
for (rr_p = rr_iter;
rr_p && *rr_p && (*rr_p != new_rr);
rr_p = &((*rr_p)->next)
);
}
Expand Down

0 comments on commit fc2f1b7

Please sign in to comment.