summaryrefslogtreecommitdiff
path: root/src/cli.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2014-04-28 11:17:04 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2014-04-28 11:17:04 +0200
commit0aec57d4a0a7da07d2f09738e1a4e187e9f61c19 (patch)
treee68921fd57aabd0d50800eb7c4b78199c66ea531 /src/cli.c
parent9fce428f14810e601960adbc9ba07e89bbe7c0d2 (diff)
downloadgnutls-0aec57d4a0a7da07d2f09738e1a4e187e9f61c19.tar.gz
only fail DANE verification if status is non-zero
Diffstat (limited to 'src/cli.c')
-rw-r--r--src/cli.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cli.c b/src/cli.c
index d1a43fc7ad..00309a8d72 100644
--- a/src/cli.c
+++ b/src/cli.c
@@ -488,7 +488,7 @@ static int cert_verify_callback(gnutls_session_t session)
gnutls_free(out.data);
}
- if (!insecure && !ssh)
+ if (status != 0 && !insecure && !ssh)
return -1;
}