]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
return proper error
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Mon, 18 Feb 2013 22:00:36 +0000 (23:00 +0100)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Mon, 18 Feb 2013 22:00:36 +0000 (23:00 +0100)
lib/pkcs11.c

index 68f8bd964154acd1fe7c1233e7f6e4da79725281..97ce3d461f895ea6778a963fd7a1fda38fdedaf2 100644 (file)
@@ -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;