gnunet-svn
[Top][All Lists]
Advanced

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

[libmicrohttpd] branch master updated: Fixed 2f4438ab7a9575e605c4a746614


From: gnunet
Subject: [libmicrohttpd] branch master updated: Fixed 2f4438ab7a9575e605c4a746614cb2b453b8f48d
Date: Thu, 29 Oct 2020 17:06:50 +0100

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

karlson2k pushed a commit to branch master
in repository libmicrohttpd.

The following commit(s) were added to refs/heads/master by this push:
     new ee18f242 Fixed 2f4438ab7a9575e605c4a746614cb2b453b8f48d
ee18f242 is described below

commit ee18f2421ad86fae7c6017cf9fbe28c7080e7690
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Thu Oct 29 18:59:25 2020 +0300

    Fixed 2f4438ab7a9575e605c4a746614cb2b453b8f48d
---
 src/examples/websocket_threaded_example.c | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/src/examples/websocket_threaded_example.c 
b/src/examples/websocket_threaded_example.c
index 536c0a09..8d99e1f7 100644
--- a/src/examples/websocket_threaded_example.c
+++ b/src/examples/websocket_threaded_example.c
@@ -849,9 +849,12 @@ ahc_cb (void *cls, struct MHD_Connection *con, const char 
*url,
   {
     return send_upgrade_required (con);
   }
-  ws_key_header = MHD_lookup_connection_value_n (
-    con, MHD_HEADER_KIND, MHD_HTTP_HEADER_SEC_WEBSOCKET_KEY, &key_size);
-  if ((NULL == ws_key_header) || (key_size != WS_KEY_LEN))
+  ret = MHD_lookup_connection_value_n (
+    con, MHD_HEADER_KIND,
+    MHD_HTTP_HEADER_SEC_WEBSOCKET_KEY,
+    strlen (MHD_HTTP_HEADER_SEC_WEBSOCKET_KEY),
+    ws_key_header, &key_size);
+  if ((MHD_NO == ret) || (key_size != WS_KEY_LEN))
   {
     return send_bad_request (con);
   }

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