]> jfr.im git - solanum.git/blobdiff - ircd/sslproc.c
Merge pull request #298 from edk0/rejectcache
[solanum.git] / ircd / sslproc.c
index b8d551bbe56f7c4b9b6924be80271042e5a7e09c..ffea6e89babef2aca35f77eec5eaf6ca3fb7eb8a 100644 (file)
@@ -355,8 +355,12 @@ ssl_process_zipstats(ssl_ctl_t * ctl, ssl_ctl_buf_t * ctl_buf)
 {
        struct Client *server;
        struct ZipStats *zips;
-       char *parv[7];
-       (void) rb_string_to_array(ctl_buf->buf, parv, 6);
+       char *parv[6];
+       int parc = rb_string_to_array(ctl_buf->buf, parv, sizeof(parv));
+
+       if (parc < sizeof(parv))
+               return;
+
        server = find_server(NULL, parv[1]);
        if(server == NULL || server->localClient == NULL || !IsCapable(server, CAP_ZIP))
                return;