[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Gnutls Build Error
From: |
Simon Josefsson |
Subject: |
Re: Gnutls Build Error |
Date: |
Tue, 02 Sep 2008 13:18:56 +0200 |
User-agent: |
Gnus/5.110011 (No Gnus v0.11) Emacs/22.2 (gnu/linux) |
I posted the patch against 2.5.x. The following should work against
2.4.1.
/Simon
>From ccfc7155f6ee1c21d56073ba3d114b55fa8cdad0 Mon Sep 17 00:00:00 2001
From: Simon Josefsson <address@hidden>
Date: Tue, 2 Sep 2008 10:26:13 +0200
Subject: [PATCH] Don't return from a void function.
Reported by Dave Uhring <address@hidden>.
---
lib/gnutls_cipher_int.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/lib/gnutls_cipher_int.c b/lib/gnutls_cipher_int.c
index a7b50b9..b9cc304 100644
--- a/lib/gnutls_cipher_int.c
+++ b/lib/gnutls_cipher_int.c
@@ -173,8 +173,11 @@ _gnutls_cipher_deinit (cipher_hd_st* handle)
{
if (handle != NULL)
{
- if (handle->registered && handle->hd.rh.ctx != NULL) {
- return handle->hd.rh.cc->deinit( handle->hd.rh.ctx);
+ if (handle->registered && handle->hd.rh.ctx != NULL)
+ {
+ handle->hd.rh.cc->deinit( handle->hd.rh.ctx);
+ return;
+ }
}
gc_cipher_close (handle->hd.gc);
}
--
1.5.6.3