]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
no need to print trailing junk at the end of a packet
authorAlan T. DeKok <aland@freeradius.org>
Fri, 6 Nov 2020 20:54:21 +0000 (15:54 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 6 Nov 2020 21:17:07 +0000 (16:17 -0500)
src/protocols/dhcpv4/decode.c

index 2b2c534c887639f9faf65b9c0f16e74b20575efc..1bc83c55cbe902ee5a29e5b5897a63ffa5100e0e 100644 (file)
@@ -496,16 +496,6 @@ ssize_t fr_dhcpv4_decode_option(TALLOC_CTX *ctx, fr_cursor_t *cursor,
         */
        if (p[0] == 0) return 1;                /* 0x00 - Padding option */
        if (p[0] == 255) {                      /* 0xff - End of options signifier */
-#ifndef NDEBUG
-               size_t i;
-
-               for (i = 1; i < data_len; i++) {
-                       if (p[i] != 0) {
-                               FR_PROTO_HEX_DUMP(p + i, data_len - i, "ignoring trailing junk at end of packet");
-                               break;
-                       }
-               }
-#endif
                return data_len;
        }