]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - apps/ocsp.c
Add a CHANGES entry for BN_generate_prime_ex
[thirdparty/openssl.git] / apps / ocsp.c
index 9f2cf453bed7212462d4d46f0f425872d3a9f1f8..71c6a56f2ff38681ac1e045d81742c814c45fee1 100644 (file)
@@ -1436,9 +1436,11 @@ static int do_responder(OCSP_REQUEST **preq, BIO **pcbio, BIO *acbio,
         *q = '\0';
 
         /*
-         * Skip "GET / HTTP..." requests often used by load-balancers
+         * Skip "GET / HTTP..." requests often used by load-balancers.  Note:
+         * 'p' was incremented above to point to the first byte *after* the
+         * leading slash, so with 'GET / ' it is now an empty string.
          */
-        if (p[1] == '\0')
+        if (p[0] == '\0')
             goto out;
 
         len = urldecode(p);