diff options
author | jpaetzel <jpaetzel@FreeBSD.org> | 2015-04-07 04:21:36 +0000 |
---|---|---|
committer | jpaetzel <jpaetzel@FreeBSD.org> | 2015-04-07 04:21:36 +0000 |
commit | a4b9ad469da2c0b8ce60a2e7f0b97e9eebefe964 (patch) | |
tree | 88a9144364d933d6869133d0e0781ed663ca1e75 /usr.sbin | |
parent | 2e68f876fa34911ffde2833388a4acd39a9517c1 (diff) | |
download | FreeBSD-src-a4b9ad469da2c0b8ce60a2e7f0b97e9eebefe964.zip FreeBSD-src-a4b9ad469da2c0b8ce60a2e7f0b97e9eebefe964.tar.gz |
MFC 281084
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.
Sponsored by: iXsystems
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/ctld/ctld.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/ctld/ctld.c b/usr.sbin/ctld/ctld.c index 6c7b968..e58018d 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\", " |