summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2016-11-07 09:17:22 +0100
committerNikos Mavrogiannopoulos <nmav@redhat.com>2016-11-07 11:14:07 +0100
commit46280167dd850529e682834fc3257f854107a763 (patch)
tree8c7f74d4f535af68dc9483a157b21980a8598f5f
parent1fb6d1b577b51e0cb9ff48fa7a7a1b73630585b3 (diff)
downloadgnutls-46280167dd850529e682834fc3257f854107a763.tar.gz
_wrap_nettle_pk_verify: use FAIL_IF_LIB_ERROR prior to returning success
This will prevent verification to succeed if the system is in error state.
-rw-r--r--lib/nettle/pk.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/nettle/pk.c b/lib/nettle/pk.c
index b281684d56..3850d8cd81 100644
--- a/lib/nettle/pk.c
+++ b/lib/nettle/pk.c
@@ -763,6 +763,7 @@ _wrap_nettle_pk_verify(gnutls_pk_algorithm_t algo,
_gnutls_mpi_release(&tmp[0]);
_gnutls_mpi_release(&tmp[1]);
+ FAIL_IF_LIB_ERROR;
return ret;
}