summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2008-09-02 10:26:13 +0200
committerSimon Josefsson <simon@josefsson.org>2008-09-02 10:26:13 +0200
commitfd702bc2d625ebc02cb15240ac05aadf9f424093 (patch)
treeadb6864130268825307e8462849db1772185e0a6 /lib
parentb7a56c207cf2d29697b09b9812700ab0b0947626 (diff)
downloadgnutls-fd702bc2d625ebc02cb15240ac05aadf9f424093.tar.gz
Don't return from a void function.
Reported by Dave Uhring <duhring@charter.net>.
Diffstat (limited to 'lib')
-rw-r--r--lib/gnutls_cipher_int.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/gnutls_cipher_int.c b/lib/gnutls_cipher_int.c
index badb074c2b..e8f7df7aa8 100644
--- a/lib/gnutls_cipher_int.c
+++ b/lib/gnutls_cipher_int.c
@@ -42,7 +42,7 @@ _gnutls_cipher_init (cipher_hd_st * handle, gnutls_cipher_algorithm_t cipher,
int ret = GNUTLS_E_INTERNAL_ERROR;
gnutls_crypto_single_cipher_st *cc = NULL;
- /* check if a cipher has been registered
+ /* check if a cipher has been registered
*/
cc = _gnutls_get_crypto_cipher (cipher);
if (cc != NULL)
@@ -140,7 +140,8 @@ _gnutls_cipher_deinit (cipher_hd_st * handle)
{
if (handle->registered && handle->hd.rh.ctx != NULL)
{
- return handle->hd.rh.cc->deinit (handle->hd.rh.ctx);
+ handle->hd.rh.cc->deinit (handle->hd.rh.ctx);
+ return;
}
_gnutls_cipher_ops.deinit (handle->hd.gc);
}