gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r36990 - libmicrohttpd/src/include


From: gnunet
Subject: [GNUnet-SVN] r36990 - libmicrohttpd/src/include
Date: Fri, 8 Apr 2016 18:31:08 +0200

Author: Karlson2k
Date: 2016-04-08 18:31:08 +0200 (Fri, 08 Apr 2016)
New Revision: 36990

Modified:
   libmicrohttpd/src/include/platform_interface.h
Log:
platform_interface.h: fix possible NULL pointer dereference on Win32

Modified: libmicrohttpd/src/include/platform_interface.h
===================================================================
--- libmicrohttpd/src/include/platform_interface.h      2016-04-08 16:31:05 UTC 
(rev 36989)
+++ libmicrohttpd/src/include/platform_interface.h      2016-04-08 16:31:08 UTC 
(rev 36990)
@@ -112,8 +112,8 @@
  ( (!(r) || ((fd_set*)(r))->fd_count == 0) && \
    (!(w) || ((fd_set*)(w))->fd_count == 0) && \
    (!(e) || ((fd_set*)(e))->fd_count == 0) ) ? \
- ( (!(t)) ? (Sleep((t)->tv_sec * 1000 + (t)->tv_usec / 1000), 0) : 0 ) : \
- (select((int)0,(r),(w),(e),(t)))
+ ( (t) ? (Sleep((t)->tv_sec * 1000 + (t)->tv_usec / 1000), 0) : 0 ) : \
+   (select((int)0,(r),(w),(e),(t)))
 #endif
 
 #if defined(HAVE_POLL)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]