Gnutls Build Error

Simon Josefsson simon at josefsson.org
Tue Sep 2 13:18:56 CEST 2008


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 <simon at josefsson.org>
Date: Tue, 2 Sep 2008 10:26:13 +0200
Subject: [PATCH] Don't return from a void function.
 Reported by Dave Uhring <duhring at charter.net>.

---
 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






More information about the Gnutls-devel mailing list