[prev in list] [next in list] [prev in thread] [next in thread] 

List:       proftpd-committers
Subject:    [ProFTPD-committers] proftpd/contrib/mod_sftp auth.c,1.52,1.53
From:       TJ Saunders <castaglia () users ! sourceforge ! net>
Date:       2014-03-04 7:54:15
Message-ID: E1WKkB7-0002MN-7j () sfs-ml-4 ! v29 ! ch3 ! sourceforge ! com
[Download RAW message or body]

Update of /cvsroot/proftp/proftpd/contrib/mod_sftp
In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv12796/contrib/mod_sftp

Modified Files:
	auth.c 
Log Message:

Bug#4034 - SSH publickey authentication fails with "MaxLoginAttempts 1".


Index: auth.c
===================================================================
RCS file: /cvsroot/proftp/proftpd/contrib/mod_sftp/auth.c,v
retrieving revision 1.52
retrieving revision 1.53
diff -u -d -r1.52 -r1.53
--- auth.c	13 Oct 2013 16:48:08 -0000	1.52
+++ auth.c	4 Mar 2014 07:54:12 -0000	1.53
@@ -1,6 +1,6 @@
 /*
  * ProFTPD - mod_sftp user authentication
- * Copyright (c) 2008-2013 TJ Saunders
+ * Copyright (c) 2008-2014 TJ Saunders
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -1254,9 +1254,10 @@
       if (send_userauth_failure(errno != EPERM ? NULL : method) < 0) {
         return -1;
       }
+
+      incr_auth_attempts(user);
     }
 
-    incr_auth_attempts(user);
     return res;
   }
 


------------------------------------------------------------------------------
Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce.
With Perforce, you get hassle-free workflows. Merge that actually works. 
Faster operations. Version large binaries.  Built-in WAN optimization and the
freedom to use Git, Perforce or both. Make the move to Perforce.
http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk
_______________________________________________
ProFTPD Committers Mailing List
proftpd-committers@proftpd.org
https://lists.sourceforge.net/lists/listinfo/proftp-committers
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic