Fix thinko/copypaste error.

When checking the length of the mutual secret password the variable for
the secret password was used by mistake.  This resulted in ctld never
warning about the length of the mutual secret being wrong even if it was.

MFC after:	3 days
Sponsored by:	iXsystems
This commit is contained in:
Josh Paetzel 2015-04-04 20:55:47 +00:00
parent b9c2f094f2
commit 7c924aae61
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=281084

View File

@ -203,7 +203,7 @@ auth_check_secret_length(struct auth *auth)
}
if (auth->a_mutual_secret != NULL) {
len = strlen(auth->a_secret);
len = strlen(auth->a_mutual_secret);
if (len > 16) {
if (auth->a_auth_group->ag_name != NULL)
log_warnx("mutual secret for user \"%s\", "