diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2011-08-01 18:21:14 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2011-08-01 18:21:14 +0200 |
commit | d5c4facbf60e704ac574cfb1378fdc3b43b2977b (patch) | |
tree | 0c2545bd6e5f59f163c57d2142b9c473c014019e /lib/pkcs11_privkey.c | |
parent | a7ece2ae178bb0c168d7e1537df06e7743ae134f (diff) | |
download | gnutls-d5c4facbf60e704ac574cfb1378fdc3b43b2977b.tar.gz |
added asserts.
Diffstat (limited to 'lib/pkcs11_privkey.c')
-rw-r--r-- | lib/pkcs11_privkey.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/pkcs11_privkey.c b/lib/pkcs11_privkey.c index 8d1fe303f1..d19732cbd3 100644 --- a/lib/pkcs11_privkey.c +++ b/lib/pkcs11_privkey.c @@ -135,10 +135,9 @@ gnutls_pkcs11_privkey_get_info (gnutls_pkcs11_privkey_t pkey, rret = pkcs11_call_token_func (key->info, retries++); \ if (rret == 0) continue; \ } \ - gnutls_assert(); \ - return ret; \ + return gnutls_assert_val(ret); \ } else if (ret < 0) { \ - return ret; \ + return gnutls_assert_val(ret); \ } \ } while (0); |