summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/pkcs11.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pkcs11.c b/lib/pkcs11.c
index 68f8bd9641..97ce3d461f 100644
--- a/lib/pkcs11.c
+++ b/lib/pkcs11.c
@@ -594,7 +594,7 @@ int gnutls_pkcs11_reinit (void)
gnutls_assert ();
_gnutls_debug_log ("Cannot initialize registered module: %s\n",
p11_kit_strerror (rv));
- return GNUTLS_E_INTERNAL_ERROR;
+ return pkcs11_rv_to_err(rv);
}
return 0;