gnunet-svn
[Top][All Lists]
Advanced

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

[libmicrohttpd] 23/156: Fixed wrong variable type used for result of gnu


From: gnunet
Subject: [libmicrohttpd] 23/156: Fixed wrong variable type used for result of gnutls_priority_init()
Date: Sun, 28 May 2023 17:51:16 +0200

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

karlson2k pushed a commit to tag v0.9.77
in repository libmicrohttpd.

commit a123f5d59c87b2a2029404a9c3b430efe8d8b322
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 d4725b20..f776b68d 100644
--- a/src/microhttpd/daemon.c
+++ b/src/microhttpd/daemon.c
@@ -5634,7 +5634,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;
@@ -5884,17 +5883,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]