Skip to content

Commit 07bcc3f

Browse files
committed
Revert "value_box_copy() already sets "secret""
This reverts commit 6f19bf2. The user message could be the user name or the password - so this sets `secret` based on the attribute being created.
1 parent 584dfdb commit 07bcc3f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/process/tacacs/base.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -796,6 +796,7 @@ RECV(auth_cont)
796796
#define EXTRACT(_attr) \
797797
vp = fr_pair_find_by_da(&request->request_pairs, NULL, attr_tacacs_user_message); \
798798
if (!vp) break; \
799+
fr_value_box_set_secret(&vp->data, _attr->flags.secret); \
799800
if (pair_append_request(&copy, _attr) < 0) break; \
800801
if (fr_pair_value_copy(copy, vp) < 0) { \
801802
fr_pair_remove(&request->request_pairs, copy); \

0 commit comments

Comments
 (0)