From: Simon Josefsson Date: Tue, 2 Sep 2008 08:26:13 +0000 (+0200) Subject: Don't return from a void function. X-Git-Tag: gnutls_2_5_6~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fd702bc2d625ebc02cb15240ac05aadf9f424093;p=thirdparty%2Fgnutls.git Don't return from a void function. Reported by Dave Uhring . --- 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); }