INN commit: trunk/nnrpd (commands.c)

INN Commit Russ_Allbery at isc.org
Fri Dec 26 23:21:47 UTC 2008


    Date: Friday, December 26, 2008 @ 15:21:47
  Author: iulius
Revision: 8262

Use 481 as the default value when no Perl/Python auth hooks
are used.

Modified:
  trunk/nnrpd/commands.c

------------+
 commands.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: commands.c
===================================================================
--- commands.c	2008-12-26 23:03:04 UTC (rev 8261)
+++ commands.c	2008-12-26 23:21:47 UTC (rev 8262)
@@ -358,7 +358,7 @@
         strlcpy(Password, av[2], sizeof(Password));
 
         errorstr[0] = '\0';
-        code[0] = '\0';
+        snprintf(code, sizeof(code), "%d", NNTP_FAIL_AUTHINFO_BAD);
 
         PERMlogin(User, Password, code, errorstr);
         PERMgetpermissions();




More information about the inn-committers mailing list