X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=src%2Fproto-p10.c;h=595bd142f7a61fab6020e299d41b22025df096d9;hb=138fe497d304b8802c189f9355d787483656db61;hp=a5d61e47664f133e2765650ec40dae2f3397d25b;hpb=4cca20037aa71f7583ff6180687d29dceea9ebaa;p=srvx.git diff --git a/src/proto-p10.c b/src/proto-p10.c index a5d61e4..595bd14 100644 --- a/src/proto-p10.c +++ b/src/proto-p10.c @@ -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) {