diff options
author | Viktor Dukhovni <openssl-users@dukhovni.org> | 2015-12-29 13:16:47 -0500 |
---|---|---|
committer | Viktor Dukhovni <openssl-users@dukhovni.org> | 2016-01-03 17:21:40 -0500 |
commit | 0e7abc903799a32d9d4eb34316cb72f1f4b28a52 (patch) | |
tree | 16a99a8da25720289a09b94ddaf59bbb03dc53b5 /crypto/x509/x509_trs.c | |
parent | d9b8b89bec4480de3a10bdaf9425db371c19145b (diff) |
Drop incorrect id == -1 case from X509_check_trust
Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'crypto/x509/x509_trs.c')
-rw-r--r-- | crypto/x509/x509_trs.c | 3 |
1 files changed, 1 insertions, 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; |