commit f557e2ad5080d832598f58041c9fab2901457012
parent cd967c6e5703076b7edaf2040f9a776324af2a29
Author: Christian Grothoff <christian@grothoff.org>
Date: Sat, 15 Feb 2014 10:13:05 +0000
Karlson2k: fix MHD_get_fdset with defined DEBUG_CONNECT
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c
@@ -645,7 +645,8 @@ MHD_get_fdset (struct MHD_Daemon *daemon,
}
#if DEBUG_CONNECT
#if HAVE_MESSAGES
- MHD_DLOG (daemon, "Maximum socket in select set: %d\n", *max_fd);
+ if (NULL != max_fd)
+ MHD_DLOG (daemon, "Maximum socket in select set: %d\n", *max_fd);
#endif
#endif
return MHD_YES;