From 0e7abc903799a32d9d4eb34316cb72f1f4b28a52 Mon Sep 17 00:00:00 2001 From: Viktor Dukhovni Date: Tue, 29 Dec 2015 13:16:47 -0500 Subject: [PATCH] Drop incorrect id == -1 case from X509_check_trust Reviewed-by: Richard Levitte --- crypto/x509/x509_trs.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/crypto/x509/x509_trs.c b/crypto/x509/x509_trs.c index 27ee47590d..8f2ff8321e 100644 --- a/crypto/x509/x509_trs.c +++ b/crypto/x509/x509_trs.c @@ -116,8 +116,7 @@ int X509_check_trust(X509 *x, int id, int flags) { X509_TRUST *pt; int idx; - if (id == -1) - return 1; + /* We get this as a default value */ if (id == 0) { int rv; -- 2.25.1