ðòïåëôù 


  áòèé÷ 


Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 

  óôáôøé 


  ðåòóïîáìøîïå 


  ðòïçòáííù 



ðéûéôå
ðéóøíá












     áòèé÷ :: Inet-Admins
Inet-Admins mailing list archive (inet-admins@info.east.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[inet-admins] fix for maxsess in tacacs+ 3.0.11




--- tac_plus.3.0.11.alpha.orig/maxsess.c        Thu May 15 08:52:33 1997
+++ tac_plus.3.0.11.alpha/maxsess.c     Wed Jul 16 14:56:57 1997
@@ -374,7 +374,7 @@

            if (sscanf(p + 1, " %d", &thisport) == 1) {
                if (atoi(curport) == thisport) {
-                   continue;
+                   /*continue;*/
                }
            }
        }
@@ -486,7 +486,7 @@
     }
     free(addrs);

-    return(nsess);
+    return(nsess-1);
 }

 /*
@@ -519,7 +519,8 @@
        if (strcmp(pu.username, idp->username)) {
            continue;
        }
-       if (STREQ(portname(pu.NAS_port), portname(idp->NAS_port))) {
+       if ((STREQ(portname(pu.NAS_port), portname(idp->NAS_port))) +               && (STREQ(pu.NAS_name,idp->NAS_name))){
            continue;
        }
        nsess += 1;



------------------------------
Mike Shoyher <msh@corbina.net>

ph:  +7-095-954-1826 
fax: +7-095-954-0040
http://www.alina.ru/~msh

=============================================================================
"inet-admins" Internet access mailing list. Maintained by East Connection ISP.
Mail "unsubscribe inet-admins" to Majordomo@east.ru if you want to quit.
List archive is accessible at http://www.east.ru/inet-admins/



 




Copyright © Lexa Software, 1996-2009.