summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorDmitry-Me <wipedout@yandex.ru>2014-06-01 21:30:52 +0400
committerRichard Levitte <levitte@openssl.org>2015-03-09 21:05:39 +0100
commitb65b4c3481d9fc88056cd8373fd693d888ca064f (patch)
treeb4a344b8debfe4faed7fea656f85ac4dc5c0bef5 /apps
parentef116b000314848b6aa11a2d9f5205b82c8b59b4 (diff)
Fix wrong numbers being passed as string lengths
Signed-off-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org> (cherry picked from commit 0b142f022e2c5072295e00ebc11c5b707a726d74)
Diffstat (limited to 'apps')
-rw-r--r--apps/s_server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/s_server.c b/apps/s_server.c
index 655ada0fe9..d5d2492a26 100644
--- a/apps/s_server.c
+++ b/apps/s_server.c
@@ -2869,7 +2869,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;