]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
Don't return from a void function.
authorSimon Josefsson <simon@josefsson.org>
Tue, 2 Sep 2008 08:26:13 +0000 (10:26 +0200)
committerSimon Josefsson <simon@josefsson.org>
Tue, 2 Sep 2008 08:26:13 +0000 (10:26 +0200)
Reported by Dave Uhring <duhring@charter.net>.

lib/gnutls_cipher_int.c

index badb074c2b29a870c7d84faf120cf80de366f58e..e8f7df7aa839c596d2655fb9828e8e58076d2454 100644 (file)
@@ -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);
     }