From: Arran Cudbard-Bell Date: Mon, 11 Oct 2021 19:46:52 +0000 (-0500) Subject: Quiet clang scan X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c581d8a4f552b7386c64d43eb4fd0f2ff954b7fe;p=thirdparty%2Ffreeradius-server.git Quiet clang scan --- diff --git a/src/lib/util/dns.c b/src/lib/util/dns.c index 5f2640e3b97..f3b836627ae 100644 --- a/src/lib/util/dns.c +++ b/src/lib/util/dns.c @@ -1270,7 +1270,7 @@ ssize_t fr_dns_label_to_value_box(TALLOC_CTX *ctx, fr_value_box_t *dst, p = (uint8_t *) q; q += slen; - while ((current < after) && (*current != 0x00)) { + while (current && (current < after) && (*current != 0x00)) { /* * Get how many bytes this label has, and where * we will go to obtain the next label.