summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/x509/verify.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/x509/verify.c b/lib/x509/verify.c
index 85539f5f4d..5cca9431fa 100644
--- a/lib/x509/verify.c
+++ b/lib/x509/verify.c
@@ -289,7 +289,7 @@ static int _gnutls_verify_certificate2(gnutls_x509_crt_t cert,
* used are secure. If the certificate is self signed it doesn't
* really matter.
*/
- if (is_issuer(cert, cert) != 0) {
+ if (is_issuer(cert, cert) == 0) {
int sigalg;
sigalg = gnutls_x509_crt_get_signature_algorithm(cert);