diff options
author | Simon Josefsson <simon@josefsson.org> | 2008-09-02 10:26:13 +0200 |
---|---|---|
committer | Simon Josefsson <simon@josefsson.org> | 2008-09-02 10:26:13 +0200 |
commit | fd702bc2d625ebc02cb15240ac05aadf9f424093 (patch) | |
tree | adb6864130268825307e8462849db1772185e0a6 /lib | |
parent | b7a56c207cf2d29697b09b9812700ab0b0947626 (diff) | |
download | gnutls-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.c | 5 |
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); } |