From 7c924aae615d775f56fa949968b2d982932afa06 Mon Sep 17 00:00:00 2001 From: Josh Paetzel Date: Sat, 4 Apr 2015 20:55:47 +0000 Subject: [PATCH] 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 --- usr.sbin/ctld/ctld.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.sbin/ctld/ctld.c b/usr.sbin/ctld/ctld.c index 2f4f147e2ac8..bff23a648b1f 100644 --- a/usr.sbin/ctld/ctld.c +++ b/usr.sbin/ctld/ctld.c @@ -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\", "