]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
clarify error message
authorAlan T. DeKok <aland@freeradius.org>
Sun, 19 Dec 2021 13:44:35 +0000 (08:44 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 21 Dec 2021 17:22:13 +0000 (12:22 -0500)
src/protocols/tacacs/decode.c

index c4207d0c64c0cc24b253ed58b8f9f0996f2795a7..1704c14e739aa0e7adb11dccf6f69706e084314e 100644 (file)
@@ -325,7 +325,7 @@ ssize_t fr_tacacs_decode(TALLOC_CTX *ctx, fr_pair_list_t *out, uint8_t const *bu
         *      Call the struct encoder to do the actual work.
         */
        if (fr_struct_from_network(ctx, out, attr_tacacs_packet, buffer, buffer_len, false, NULL, NULL, NULL) < 0) {
-               fr_strerror_printf("Problems to decode %s using fr_struct_from_network()", attr_tacacs_packet->name);
+               fr_strerror_printf("Failed decoding TACACS header - %s", fr_strerror());
                return -1;
        }