]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Quiet clang scan
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Mon, 11 Oct 2021 19:46:52 +0000 (14:46 -0500)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Mon, 11 Oct 2021 19:46:52 +0000 (14:46 -0500)
src/lib/util/dns.c

index 5f2640e3b977132b54ac8b51e7315bc66685317c..f3b836627aed3f6fc4b9de6b60685f5ef2296aef 100644 (file)
@@ -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.