[Patch] OCSP stapling: missing OCSP request free call

Filipe Da Silva fdasilvayy at gmail.com
Tue Apr 29 20:29:29 UTC 2014


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:



More information about the nginx-devel mailing list