Fix wrong numbers being passed as string lengths
[openssl.git] / apps / s_server.c
index cf5b50016f35946069cc2aebee8cb6650716809c..42088d0e8464e6db60a0106beeb21df0e2e67073 100644 (file)
@@ -2745,7 +2745,7 @@ static int www_body(char *hostname, int s, int stype, unsigned char *context)
 
         /* else we have data */
         if (((www == 1) && (strncmp("GET ", buf, 4) == 0)) ||
-            ((www == 2) && (strncmp("GET /stats ", buf, 10) == 0))) {
+            ((www == 2) && (strncmp("GET /stats ", buf, 11) == 0))) {
             char *p;
             X509 *peer;
             STACK_OF(SSL_CIPHER) *sk;