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:02:41 +0100
commit0b142f022e2c5072295e00ebc11c5b707a726d74 (patch)
tree1faea7110420e31d780d6f20985c612aac8776da /apps
parent99e1ad3c4bb1dd03f36429c1ce4eafa5ed162964 (diff)
Fix wrong numbers being passed as string lengths
Signed-off-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org>
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 cf5b50016f..42088d0e84 100644
--- a/apps/s_server.c
+++ b/apps/s_server.c
@@ -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;