From: Viktor Dukhovni Date: Tue, 29 Dec 2015 18:16:47 +0000 (-0500) Subject: Drop incorrect id == -1 case from X509_check_trust X-Git-Tag: OpenSSL_1_1_0-pre2~128 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=0e7abc903799a32d9d4eb34316cb72f1f4b28a52;p=oweals%2Fopenssl.git Drop incorrect id == -1 case from X509_check_trust Reviewed-by: Richard Levitte --- 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;