aboutsummaryrefslogtreecommitdiff
path: root/src/lib/connection_cleanup.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/connection_cleanup.c')
-rw-r--r--src/lib/connection_cleanup.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/connection_cleanup.c b/src/lib/connection_cleanup.c
index 4f2cfb0f..d03bc046 100644
--- a/src/lib/connection_cleanup.c
+++ b/src/lib/connection_cleanup.c
@@ -59,6 +59,8 @@ connection_cleanup_upgraded (struct MHD_Connection *connection)
59 connection->request.urh = NULL; 59 connection->request.urh = NULL;
60 free (urh); 60 free (urh);
61} 61}
62
63
62#endif /* UPGRADE_SUPPORT */ 64#endif /* UPGRADE_SUPPORT */
63 65
64 66
@@ -129,8 +131,7 @@ MHD_connection_cleanup_ (struct MHD_Daemon *daemon)
129 this is not true as if we fail to do manually remove it, 131 this is not true as if we fail to do manually remove it,
130 we are still seeing an event for this fd in epoll, 132 we are still seeing an event for this fd in epoll,
131 causing grief (use-after-free...) --- at least on my 133 causing grief (use-after-free...) --- at least on my
132 system. */ 134 system. */if (0 != epoll_ctl (daemon->epoll_fd,
133 if (0 != epoll_ctl (daemon->epoll_fd,
134 EPOLL_CTL_DEL, 135 EPOLL_CTL_DEL,
135 pos->socket_fd, 136 pos->socket_fd,
136 NULL)) 137 NULL))
@@ -155,4 +156,5 @@ MHD_connection_cleanup_ (struct MHD_Daemon *daemon)
155 MHD_mutex_unlock_chk_ (&daemon->cleanup_connection_mutex); 156 MHD_mutex_unlock_chk_ (&daemon->cleanup_connection_mutex);
156} 157}
157 158
159
158/* end of connection_cleanup.c */ 160/* end of connection_cleanup.c */