svn commit: r281187 - stable/10/usr.sbin/ctld
Josh Paetzel
jpaetzel at FreeBSD.org
Tue Apr 7 04:21:37 UTC 2015
Author: jpaetzel
Date: Tue Apr 7 04:21:36 2015
New Revision: 281187
URL: https://svnweb.freebsd.org/changeset/base/281187
Log:
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
Modified:
stable/10/usr.sbin/ctld/ctld.c
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/usr.sbin/ctld/ctld.c
==============================================================================
--- stable/10/usr.sbin/ctld/ctld.c Tue Apr 7 02:55:22 2015 (r281186)
+++ stable/10/usr.sbin/ctld/ctld.c Tue Apr 7 04:21:36 2015 (r281187)
@@ -203,7 +203,7 @@ auth_check_secret_length(struct auth *au
}
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\", "
More information about the svn-src-stable-10
mailing list