[Patch] OCSP stapling: missing OCSP request free call

Maxim Dounin mdounin at mdounin.ru
Wed Apr 30 17:00:40 UTC 2014


Hello!

On Tue, Apr 29, 2014 at 10:29:29PM +0200, Filipe Da Silva wrote:

> Hello,
> 
> I think there is a free call to do when the OCSP request is well
> created, and encoded.
> Or did I miss something ?
> 
> Regards,
> Filipe
> 
> 
> # HG changeset patch
> # User Filipe da Silva <fdasilvayy at gmail.com>
> # Date 1398802958 -7200
> #      Tue Apr 29 22:22:38 2014 +0200
> # Node ID 8b75fcb0055f448cd5fc4f922b5b7457b38754c4
> # Parent  3a48775f1535fe37cd9c034d92c5a5e9ae208c1e
> OCSP stapling: missing OCSP request free call
> 
> diff -r 3a48775f1535 -r 8b75fcb0055f src/event/ngx_event_openssl_stapling.c
> --- a/src/event/ngx_event_openssl_stapling.c    Tue Apr 29 12:28:41 2014 +0400
> +++ b/src/event/ngx_event_openssl_stapling.c    Tue Apr 29 22:22:38 2014 +0200
> @@ -1195,6 +1195,8 @@ ngx_ssl_ocsp_create_request(ngx_ssl_ocsp
>      b->last = p;
>      ctx->request = b;
> 
> +    OCSP_REQUEST_free(ocsp);
> +
>      return NGX_OK;
> 
>  failed:

Committed, thanks!

-- 
Maxim Dounin
http://nginx.org/



More information about the nginx-devel mailing list