diff options
Diffstat (limited to 'src/daemon/daemon.c')
-rw-r--r-- | src/daemon/daemon.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/daemon/daemon.c b/src/daemon/daemon.c index 12a243ea..2fbd3abc 100644 --- a/src/daemon/daemon.c +++ b/src/daemon/daemon.c | |||
@@ -246,9 +246,10 @@ MHD_accept_connection(struct MHD_Daemon * daemon) { | |||
246 | CLOSE(s); | 246 | CLOSE(s); |
247 | return MHD_NO; | 247 | return MHD_NO; |
248 | } | 248 | } |
249 | if (MHD_NO == daemon->apc(daemon->apc_cls, | 249 | if ( (daemon->apc != NULL) && |
250 | addr, | 250 | (MHD_NO == daemon->apc(daemon->apc_cls, |
251 | addrlen)) { | 251 | addr, |
252 | addrlen)) ) { | ||
252 | CLOSE(s); | 253 | CLOSE(s); |
253 | return MHD_YES; | 254 | return MHD_YES; |
254 | } | 255 | } |