]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
look at contents, not at pointer
authorAlan T. DeKok <aland@freeradius.org>
Sat, 19 Oct 2019 18:30:45 +0000 (14:30 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Sat, 19 Oct 2019 18:30:45 +0000 (14:30 -0400)
src/lib/util/value.c

index e514d424432aa7ddf4dbc984a5665875149ec73c..c781d23effd202c813e72962b1af3626c1554c07 100644 (file)
@@ -1337,7 +1337,7 @@ static bool dns_label_match(uint8_t const *start, uint8_t const *a, uint8_t cons
        if (*a > 63) {
                uint16_t offset;
 
-               offset = start + a[1];
+               offset = a[1];
                offset += ((*a & ~0xc0) << 8);
 
                a = start + offset;