From: Alan T. DeKok Date: Fri, 8 Oct 2021 13:01:48 +0000 (-0400) Subject: more "shut up compiler" X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9cf0b14eaf703cbb6498bae6c6a5ca2eabb886b8;p=thirdparty%2Ffreeradius-server.git more "shut up compiler" --- diff --git a/src/lib/util/dns.c b/src/lib/util/dns.c index 26c57a6076e..ef5a789ac7b 100644 --- a/src/lib/util/dns.c +++ b/src/lib/util/dns.c @@ -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); } /*