svn commit: r281084 - head/usr.sbin/ctld

Josh Paetzel jpaetzel at FreeBSD.org
Sat Apr 4 20:55:48 UTC 2015


Author: jpaetzel
Date: Sat Apr  4 20:55:47 2015
New Revision: 281084
URL: https://svnweb.freebsd.org/changeset/base/281084

Log:
  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

Modified:
  head/usr.sbin/ctld/ctld.c

Modified: head/usr.sbin/ctld/ctld.c
==============================================================================
--- head/usr.sbin/ctld/ctld.c	Sat Apr  4 20:30:20 2015	(r281083)
+++ head/usr.sbin/ctld/ctld.c	Sat Apr  4 20:55:47 2015	(r281084)
@@ -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-head mailing list