[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.
- [libmicrohttpd] 28/156: websocket_threaded_example: minor fixes, (continued)
- [libmicrohttpd] 28/156: websocket_threaded_example: minor fixes, gnunet, 2023/05/28
- [libmicrohttpd] 37/156: testcurl: fixed checking response headers as null-terminated string, gnunet, 2023/05/28
- [libmicrohttpd] 34/156: daemon: fixed delayed notification callback in thread-per-connection mode, gnunet, 2023/05/28
- [libmicrohttpd] 38/156: test_upgrade{,_large}: fixed HTTP/1.1 compatibility, gnunet, 2023/05/28
- [libmicrohttpd] 42/156: configure: try to detect whether eventfd is enabled, gnunet, 2023/05/28
- [libmicrohttpd] 35/156: mhd_assert: use "DEBUG" macro defined by some toolchains, gnunet, 2023/05/28
- [libmicrohttpd] 33/156: mhd_str: fixed compiler warning for compact code, gnunet, 2023/05/28
- [libmicrohttpd] 26/156: Fixed very rare data races when closing upgraded connection, gnunet, 2023/05/28
- [libmicrohttpd] 30/156: configure: fixed underquoting, typos, wording, gnunet, 2023/05/28
- [libmicrohttpd] 32/156: configure: fixed typos in messages, gnunet, 2023/05/28
- [libmicrohttpd] 23/156: Fixed wrong variable type used for result of gnutls_priority_init(),
gnunet <=
- [libmicrohttpd] 41/156: configure: used better detection of some functions when cross-compiling, gnunet, 2023/05/28
- [libmicrohttpd] 27/156: test_http_reasons: fixed compiler warnings, gnunet, 2023/05/28
- [libmicrohttpd] 29/156: Remove double adding of MHD_HTTP_HEADER_CONNECTION response header, gnunet, 2023/05/28
- [libmicrohttpd] 31/156: connection: skip no-op calling of body generation functions when response body is not used, gnunet, 2023/05/28
- [libmicrohttpd] 43/156: -typo, gnunet, 2023/05/28
- [libmicrohttpd] 21/156: internal.h: fixed incorrect use of enum value as preprocessor value, gnunet, 2023/05/28
- [libmicrohttpd] 40/156: Added new M4 helper macro, gnunet, 2023/05/28
- [libmicrohttpd] 39/156: test_get_iovec: fixed missing include headers, gnunet, 2023/05/28
- [libmicrohttpd] 45/156: MHD_get_version_bin(): added new function, gnunet, 2023/05/28
- [libmicrohttpd] 44/156: add assertion to guard against bad behavior described in #7196, also document that after suspending one must return MHD_YES, gnunet, 2023/05/28