]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Print the padding data (that's not zeroed)
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sun, 3 Dec 2017 16:24:37 +0000 (16:24 +0000)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sun, 3 Dec 2017 16:24:37 +0000 (16:24 +0000)
src/modules/rlm_eap/lib/sim/decode.c

index 8ac03cfc7ff1e69c859dec875b4e0a1320bf5728..07eb99479b7fb42b0d07f3aae2851684ab12602f 100644 (file)
@@ -455,7 +455,8 @@ static ssize_t sim_decode_tlv(TALLOC_CTX *ctx, vp_cursor_t *cursor,
                         */
                        for (i = 2; i < sim_at_len; i++) zero |= p[i];
                        if (zero) {
-                               fr_strerror_printf("%s: Padding attribute value not zeroed", __FUNCTION__);
+                               fr_strerror_printf("%s: Padding attribute value not zeroed %pV", __FUNCTION__,
+                                                  fr_box_octets(p + 2, sim_at_len - 2));
                                goto error;
                        }