summaryrefslogtreecommitdiff
path: root/lib/ext
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2016-09-22 11:01:22 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2016-09-22 11:01:39 +0200
commite3f270cce72523674821f3f72be60b86111c631f (patch)
tree8720504dcd5bea1e1ebb6ecd34566f067ac96ed0 /lib/ext
parent46679c46a97592715c67c64a6d1210925b56a36c (diff)
downloadgnutls-e3f270cce72523674821f3f72be60b86111c631f.tar.gz
_gnutls_session_get_sign_algo: always return GNUTLS_SIGN_UNKNOWN on failure
Diffstat (limited to 'lib/ext')
-rw-r--r--lib/ext/signature.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ext/signature.c b/lib/ext/signature.c
index 29a208e367..354790b5d3 100644
--- a/lib/ext/signature.c
+++ b/lib/ext/signature.c
@@ -268,7 +268,7 @@ _gnutls_session_get_sign_algo(gnutls_session_t session,
unsigned int cert_algo;
if (unlikely(ver == NULL))
- return gnutls_assert_val(GNUTLS_E_INTERNAL_ERROR);
+ return gnutls_assert_val(GNUTLS_SIGN_UNKNOWN);
cert_algo = gnutls_pubkey_get_pk_algorithm(cert->pubkey, NULL);