gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libmicrohttpd] 05/10: Fixed wrong variable type used for result of gnut


From: gnunet
Subject: [libmicrohttpd] 05/10: Fixed wrong variable type used for result of gnutls_priority_init()
Date: Tue, 31 May 2022 19:38:14 +0200

This is an automated email from the git hooks/post-receive script.

karlson2k pushed a commit to branch master
in repository libmicrohttpd.

commit 7422951e9bf82d036ecef2341de868838d2e1ce1
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Tue May 31 19:22:38 2022 +0300

    Fixed wrong variable type used for result of gnutls_priority_init()
---
 src/microhttpd/daemon.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c
index 9af79678..151a2673 100644
--- a/src/microhttpd/daemon.c
+++ b/src/microhttpd/daemon.c
@@ -5847,7 +5847,6 @@ parse_options_va (struct MHD_Daemon *daemon,
   unsigned int i;
   unsigned int uv;
 #ifdef HTTPS_SUPPORT
-  enum MHD_Result ret;
   const char *pstr;
 #if GNUTLS_VERSION_MAJOR >= 3
   gnutls_certificate_retrieve_function2 *pgcrf;
@@ -6097,17 +6096,18 @@ parse_options_va (struct MHD_Daemon *daemon,
                      const char *);
       if (0 != (daemon->options & MHD_USE_TLS))
       {
+        int init_res;
         gnutls_priority_deinit (daemon->priority_cache);
-        ret = gnutls_priority_init (&daemon->priority_cache,
-                                    pstr,
-                                    NULL);
-        if (GNUTLS_E_SUCCESS != ret)
+        init_res = gnutls_priority_init (&daemon->priority_cache,
+                                         pstr,
+                                         NULL);
+        if (GNUTLS_E_SUCCESS != init_res)
         {
 #ifdef HAVE_MESSAGES
           MHD_DLOG (daemon,
                     _ ("Setting priorities to `%s' failed: %s\n"),
                     pstr,
-                    gnutls_strerror (ret));
+                    gnutls_strerror (init_res));
 #endif
           daemon->priority_cache = NULL;
           return MHD_NO;

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]