From: Alan T. DeKok Date: Fri, 17 Feb 2023 13:25:52 +0000 (-0500) Subject: decode using the correct field X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c0da3353e3ea004de99bfb9b5a32975f7098614a;p=thirdparty%2Ffreeradius-server.git decode using the correct field --- diff --git a/src/protocols/tacacs/decode.c b/src/protocols/tacacs/decode.c index 75426dc33b3..8f3dc05e423 100644 --- a/src/protocols/tacacs/decode.c +++ b/src/protocols/tacacs/decode.c @@ -294,8 +294,8 @@ static int tacacs_decode_args(TALLOC_CTX *ctx, fr_pair_list_t *out, fr_dict_attr return -1; } - value = buffer; - arg_end = buffer + argv[i]; + value = p; + arg_end = p + argv[i]; if ((arg_end > value) && (fr_pair_value_bstrndup(vp, (char const *) value, arg_end - value, true) < 0)) {