From 0761771b8b2e92803c83259f8e4c39cb3248841f Mon Sep 17 00:00:00 2001
From: Francesco Giacomini <giaco at cnaf dot infn dot it>
Date: Fri, 29 Jun 2018 09:41:26 +0200
Subject: [PATCH] initialize result

---
 src/ngx_http_voms_module.cpp | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/ngx_http_voms_module.cpp b/src/ngx_http_voms_module.cpp
index b0a316f..f6841de 100644
--- a/src/ngx_http_voms_module.cpp
+++ b/src/ngx_http_voms_module.cpp
@@ -560,10 +560,13 @@ static ngx_int_t get_ssl_client_ee_dn(ngx_http_request_t* r,
   return NGX_OK;
 }
 
-static ngx_int_t get_ssl_client_ee_cert_raw(ngx_http_request_t* r, ngx_str_t* result)
+static ngx_int_t get_ssl_client_ee_cert_raw(ngx_http_request_t* r,
+                                            ngx_str_t* result)
 {
   ngx_log_error(NGX_LOG_DEBUG, r->connection->log, 0, "%s", __func__);
 
+  *result = {};
+
   auto ee_cert = get_ee_cert(r);
 
   if (!ee_cert) {
-- 
GitLab