From: Emeric Brun Date: Fri, 20 Jun 2014 13:37:32 +0000 (+0200) Subject: BUG/MINOR: ssl: Fix OCSP resp update fails with the same certificate configured twice. X-Git-Tag: v1.6-dev1~396 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1d3865b096b43b9a6d6a564ffb424ffa6f1ef79f;p=thirdparty%2Fhaproxy.git BUG/MINOR: ssl: Fix OCSP resp update fails with the same certificate configured twice. --- diff --git a/src/ssl_sock.c b/src/ssl_sock.c index 9eacf9f942..328b97880b 100644 --- a/src/ssl_sock.c +++ b/src/ssl_sock.c @@ -195,7 +195,7 @@ nosec: return -1; } -static struct eb_root cert_ocsp_tree; +static struct eb_root cert_ocsp_tree = EB_ROOT_UNIQUE; /* This function starts to check if the OCSP response (in DER format) contained * in chunk 'ocsp_response' is valid (else exits on error).