gnunet-svn
[Top][All Lists]
Advanced

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

[libmicrohttpd] 28/156: websocket_threaded_example: minor fixes


From: gnunet
Subject: [libmicrohttpd] 28/156: websocket_threaded_example: minor fixes
Date: Sun, 28 May 2023 17:51:21 +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 95d163cc84e0be7a2198b5a00d48299e2c683f02
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Tue Jun 14 20:13:46 2022 +0300

    websocket_threaded_example: minor fixes
---
 src/examples/websocket_threaded_example.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/examples/websocket_threaded_example.c 
b/src/examples/websocket_threaded_example.c
index b3c7f111..37ba93cc 100644
--- a/src/examples/websocket_threaded_example.c
+++ b/src/examples/websocket_threaded_example.c
@@ -280,7 +280,7 @@ SHA1Result (struct SHA1Context *context, unsigned char
   }
   if (context->corrupted)
   {
-    return context->corrupted;
+    return SHA1_RESULT_STATE_ERROR;
   }
   if (! context->computed)
   {
@@ -316,12 +316,12 @@ SHA1Input (struct SHA1Context *context, const unsigned 
char *message_array,
   }
   if (context->computed)
   {
-    context->corrupted = SHA1_RESULT_STATE_ERROR;
+    context->corrupted = 1;
     return SHA1_RESULT_STATE_ERROR;
   }
   if (context->corrupted)
   {
-    return context->corrupted;
+    return SHA1_RESULT_STATE_ERROR;
   }
   while (length-- && ! context->corrupted)
   {

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