]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
more "shut up compiler"
authorAlan T. DeKok <aland@freeradius.org>
Fri, 8 Oct 2021 13:01:48 +0000 (09:01 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 8 Oct 2021 13:56:10 +0000 (09:56 -0400)
src/lib/util/dns.c

index 26c57a6076ecfa2043858a7d701f09c33d4b0585..ef5a789ac7b979049c1fb87e6fc608793b19809c 100644 (file)
@@ -1141,7 +1141,7 @@ static ssize_t dns_label_decode(uint8_t const *packet, uint8_t const *end, uint8
 
        p = *start;
 
-       if (end == packet) return 0;
+       if (end == packet) return -1;
 
        if (*p == 0x00) {
                *next = p + 1;
@@ -1288,6 +1288,7 @@ ssize_t fr_dns_label_to_value_box(TALLOC_CTX *ctx, fr_value_box_t *dst,
                 */
                p += slen;
                current = next;
+               fr_assert(current != NULL);
        }
 
        /*