INN commit: trunk/nnrpd (perl.c)

INN Commit Russ_Allbery at isc.org
Fri Dec 26 19:26:43 UTC 2008


    Date: Friday, December 26, 2008 @ 11:26:42
  Author: iulius
Revision: 8260

Remove useless code in Perl authentication hook.
When 200 or 201, "code" should not be changed.
When 481 is returned, there is no need to change PERMneedauth
(is has already been set to true before the call of the function).

Modified:
  trunk/nnrpd/perl.c

--------+
 perl.c |    7 -------
 1 file changed, 7 deletions(-)

Modified: perl.c
===================================================================
--- perl.c	2008-12-26 04:19:39 UTC (rev 8259)
+++ perl.c	2008-12-26 19:26:42 UTC (rev 8260)
@@ -387,13 +387,6 @@
 
     code = POPi;
 
-    if ((code == NNTP_OK_BANNER_POST) || (code == NNTP_OK_BANNER_NOPOST))
-        code = (PERMcanpost || (PERMcanauthenticate && PERMcanpostgreeting)) ?
-                NNTP_OK_BANNER_POST : NNTP_OK_BANNER_NOPOST;
-
-    if (code == NNTP_FAIL_AUTH_NEEDED) 
-        PERMneedauth = true;
-
     hv_undef(attribs);
 
     PUTBACK;




More information about the inn-committers mailing list