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

List:       proftpd-committers
Subject:    [ProFTPD-committers] CVS: proftpd/modules mod_auth.c,1.107,1.108
From:       TJ Saunders <castaglia () users ! sourceforge ! net>
Date:       2002-11-25 21:28:44
[Download RAW message or body]

Update of /cvsroot/proftp/proftpd/modules
In directory sc8-pr-cvs1:/tmp/cvs-serv13311/modules

Modified Files:
	mod_auth.c 
Log Message:

Moving hcur increment to a more appropriate location.  There still seems to
be lingering issues with these limits, though.  Yay.


Index: mod_auth.c
===================================================================
RCS file: /cvsroot/proftp/proftpd/modules/mod_auth.c,v
retrieving revision 1.107
retrieving revision 1.108
diff -u -r1.107 -r1.108
--- mod_auth.c	25 Nov 2002 17:33:49 -0000	1.107
+++ mod_auth.c	25 Nov 2002 21:28:39 -0000	1.108
@@ -1408,14 +1408,18 @@
 	
           *d = '\0';
 	
-	  /* Count up sessions on a per-host basis.  This first small hack
-           * increments the hcur counter properly when dealing with anonymous
-           * logins. */
-          if (c && hcur == 0)
-            hcur = 1;
+	  /* Count up sessions on a per-host basis. */
 
           if (!strcmp(ip, inet_ntoa(*session.c->remote_ipaddr))) {
 	    same_host = TRUE;
+
+            /* This small hack makes sure that hcur is incremented properly
+             * when dealing with anonymous logins (the timing of anonymous
+             * login updates to the scoreboard makes this...odd).
+             */
+            if (c && c->config_type == CONF_ANON && hcur == 0)
+              hcur = 1;
+
             hcur++;
 	  }
 	



-------------------------------------------------------
This SF.net email is sponsored by: Get the new Palm Tungsten T 
handheld. Power & Color in a compact size! 
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
_______________________________________________
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