summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ctld/ctld.c
diff options
context:
space:
mode:
authorjpaetzel <jpaetzel@FreeBSD.org>2015-04-04 20:55:47 +0000
committerjpaetzel <jpaetzel@FreeBSD.org>2015-04-04 20:55:47 +0000
commit4e7da03796a646af9d2cfdb7869c5a45ef2074e2 (patch)
tree18f4431b9ffd5d3767c4c7adbd02aa5449d8f7df /usr.sbin/ctld/ctld.c
parent7dc1b68a5d3368b0236f09724848d3477b33be3b (diff)
downloadFreeBSD-src-4e7da03796a646af9d2cfdb7869c5a45ef2074e2.zip
FreeBSD-src-4e7da03796a646af9d2cfdb7869c5a45ef2074e2.tar.gz
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
Diffstat (limited to 'usr.sbin/ctld/ctld.c')
-rw-r--r--usr.sbin/ctld/ctld.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/ctld/ctld.c b/usr.sbin/ctld/ctld.c
index 2f4f147..bff23a6 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\", "
OpenPOWER on IntegriCloud