Fix a +o mode parsing error.
authorMichael Poole <mdpoole@troilus.org>
Fri, 7 Apr 2006 00:56:38 +0000 (00:56 +0000)
committerMichael Poole <mdpoole@troilus.org>
Fri, 7 Apr 2006 00:56:38 +0000 (00:56 +0000)
src/proto-p10.c (mod_chanmode_parse): Check that the input argument after
    +o is a valid one.
git-archimport-id: srvx@srvx.net--2006/srvx--devo--1.3--patch-12

ChangeLog
src/proto-p10.c

index 9f4add7fc4700fea397c2e1105f54b25be9ee044..4154aa24ba6a468c0c3409c592181393bd4873ae 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,20 @@
 # arch-tag: automatic-ChangeLog--srvx@srvx.net--2006/srvx--devo--1.3
 #
 
+2006-04-07 00:56:38 GMT        Michael Poole <mdpoole@troilus.org>     patch-12
+
+    Summary:
+      Fix a +o mode parsing error.
+    Revision:
+      srvx--devo--1.3--patch-12
+
+    src/proto-p10.c (mod_chanmode_parse): Check that the input argument after
+        +o is a valid one.
+
+    modified files:
+     ChangeLog src/proto-p10.c
+
+
 2006-04-06 02:19:47 GMT        Michael Poole <mdpoole@troilus.org>     patch-11
 
     Summary:
index a5d61e47664f133e2765650ec40dae2f3397d25b..595bd142f7a61fab6020e299d41b22025df096d9 100644 (file)
@@ -2274,6 +2274,8 @@ mod_chanmode_parse(struct chanNode *channel, char **modes, unsigned int argc, un
             char *oplevel_str;
             int oplevel;
 
+            if (in_arg >= argc)
+                goto error;
             oplevel_str = strchr(modes[in_arg], ':');
             if (oplevel_str)
             {