]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
print packet name, too
authorAlan T. DeKok <aland@freeradius.org>
Fri, 6 Jan 2023 16:25:27 +0000 (11:25 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 13 Jan 2023 14:02:06 +0000 (09:02 -0500)
so that the _msg argument to the macro is used

src/protocols/tacacs/decode.c

index 2b12e2d33739233045a5938ef59e33ba8a9c3952..38727116d360817ace5a67262ddb16517067ff60 100644 (file)
@@ -42,7 +42,7 @@
 
 #define ARG_COUNT_CHECK(_msg, _arg_cnt) do { \
        if ((p + _arg_cnt) > end) { \
-               fr_strerror_printf("Argument count %u overflows the remaining data in the packet", _arg_cnt); \
+               fr_strerror_printf("Argument count %u overflows the remaining data in the %s packet", _arg_cnt, _msg); \
                goto fail; \
        } \
        p += _arg_cnt; \