gnunet-svn
[Top][All Lists]
Advanced

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

[libmicrohttpd] 04/07: MHD_start_daemon(): added some asserts


From: gnunet
Subject: [libmicrohttpd] 04/07: MHD_start_daemon(): added some asserts
Date: Fri, 10 Nov 2023 15:40:13 +0100

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

karlson2k pushed a commit to branch master
in repository libmicrohttpd.

commit 068f4b6b8621e9093c6ee9290bf22143de5e8871
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Fri Nov 10 09:33:32 2023 +0300

    MHD_start_daemon(): added some asserts
---
 src/microhttpd/daemon.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c
index 388af660..2aa68d40 100644
--- a/src/microhttpd/daemon.c
+++ b/src/microhttpd/daemon.c
@@ -8170,6 +8170,7 @@ MHD_start_daemon_va (unsigned int flags,
 
   if (MHD_INVALID_SOCKET != listen_fd)
   {
+    mhd_assert (0 == (*pflags & MHD_USE_NO_LISTEN_SOCKET));
     if (! MHD_socket_nonblocking_ (listen_fd))
     {
 #ifdef HAVE_MESSAGES
@@ -8210,7 +8211,10 @@ MHD_start_daemon_va (unsigned int flags,
     }
   }
   else
+  {
+    mhd_assert (0 != (*pflags & MHD_USE_NO_LISTEN_SOCKET));
     daemon->listen_nonblk = false; /* Actually listen socket does not exist */
+  }
 
 #ifdef EPOLL_SUPPORT
   if (MHD_D_IS_USING_EPOLL_ (daemon)

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