CVSROOT : /cvsroot/undernet-ircu
Module : ircu2.10
Branch tags: u2_10_11_03
Commit time: 2002-10-19 14:20:31 UTC
Modified files:
Tag: u2_10_11_03
ChangeLog ircd/channel.c
Log message:
Author: Kev <[EMAIL PROTECTED]>
Log message:
Correct an off-by-one error in mode_parse_key() that caused the server to
tell the client that the key was one character longer than what it actually
stored.
---------------------- diff included ----------------------
Index: ircu2.10/ChangeLog
diff -u ircu2.10/ChangeLog:1.290.2.125.2.4 ircu2.10/ChangeLog:1.290.2.125.2.5
--- ircu2.10/ChangeLog:1.290.2.125.2.4 Sat Oct 19 07:07:30 2002
+++ ircu2.10/ChangeLog Sat Oct 19 07:20:14 2002
@@ -1,5 +1,10 @@
2002-10-19 Kevin L Mitchell <[EMAIL PROTECTED]>
+ * ircd/channel.c (mode_parse_key): correct an off-by-one error
+ that failed to truncate passed-in keys correctly--this caused a
+ presentation error that made the client think the key was one
+ character longer than it actually was
+
* ircd/channel.c (mode_process_bans): correct an off-by-one error
that allowed only 29 (44) bans to be set instead of the full 30
(45)
Index: ircu2.10/ircd/channel.c
diff -u ircu2.10/ircd/channel.c:1.73.2.10.4.2 ircu2.10/ircd/channel.c:1.73.2.10.4.3
--- ircu2.10/ircd/channel.c:1.73.2.10.4.2 Sat Oct 19 07:07:31 2002
+++ ircu2.10/ircd/channel.c Sat Oct 19 07:20:16 2002
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
- * $Id: channel.c,v 1.73.2.10.4.2 2002/10/19 14:07:31 klmitch Exp $
+ * $Id: channel.c,v 1.73.2.10.4.3 2002/10/19 14:20:16 klmitch Exp $
*/
#include "config.h"
@@ -2009,7 +2009,7 @@
return;
state->done |= DONE_KEY;
- t_len = KEYLEN + 1;
+ t_len = KEYLEN;
/* clean up the key string */
s = t_str;
----------------------- End of diff -----------------------