From: Rich Salz Date: Tue, 20 Apr 2021 18:14:00 +0000 (-0400) Subject: Read a REQUEST not RESPONSE in ocsp responder X-Git-Tag: openssl-3.0.0-alpha16~155 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ef7ae359109c7c4edb252523d5ab1467ae1d2110;p=thirdparty%2Fopenssl.git Read a REQUEST not RESPONSE in ocsp responder Fixes: #13904 Reviewed-by: Richard Levitte Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/14946) --- diff --git a/apps/ocsp.c b/apps/ocsp.c index a4d2e636546..fbc9cf46f44 100644 --- a/apps/ocsp.c +++ b/apps/ocsp.c @@ -1165,7 +1165,7 @@ static int do_responder(OCSP_REQUEST **preq, BIO **pcbio, BIO *acbio, int timeout) { #ifndef OPENSSL_NO_SOCK - return http_server_get_asn1_req(ASN1_ITEM_rptr(OCSP_RESPONSE), + return http_server_get_asn1_req(ASN1_ITEM_rptr(OCSP_REQUEST), (ASN1_VALUE **)preq, NULL, pcbio, acbio, prog, 1 /* accept_get */, timeout); #else