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\", "
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to