From 5e7d876af25fd85fd90696425602623998c867ec Mon Sep 17 00:00:00 2001 From: William Robinet Date: Wed, 27 Jan 2021 20:18:22 +0100 Subject: [PATCH] Fix bug introduced in 64effa3bb93c3a219fb0afd868c5bc2609093ced --- ssl/sslxprint.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ssl/sslxprint.c b/ssl/sslxprint.c index 9ff6158..4127eb4 100644 --- a/ssl/sslxprint.c +++ b/ssl/sslxprint.c @@ -184,7 +184,7 @@ int sslx_print_certificate(ssl,data,pf) #ifdef OPENSSL if(x) X509_free(x); #endif - if(cert_obj) json_object_put(cert_obj); + if(_status && cert_obj) json_object_put(cert_obj); return(_status); }