]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: ssl: Fix OCSP resp update fails with the same certificate configured twice.
authorEmeric Brun <ebrun@haproxy.com>
Fri, 20 Jun 2014 13:37:32 +0000 (15:37 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 23 Jun 2014 10:14:47 +0000 (12:14 +0200)
src/ssl_sock.c

index 9eacf9f942b81a78e5a526d88bb63a96a9ac8770..328b97880b8d025b0ecad90ccdf0a25c242f04e2 100644 (file)
@@ -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).