commit abc6bac2fbc1bd5927e1d2827eca2c15365c16b8 parent 0b4e8535a30c4b76dbb95b1c598f0a44325046d1 Author: Evgeny Grin (Karlson2k) <k2k@narod.ru> Date: Tue, 28 Feb 2017 19:23:16 +0300 MHD_get_timeout(): fixed return of latest timeout instead of earliest. Diffstat:
| M | src/microhttpd/daemon.c | | | 4 | ++-- |
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c @@ -2995,8 +2995,8 @@ MHD_get_timeout (struct MHD_Daemon *daemon, have_timeout = MHD_YES; } } - /* normal timeouts are sorted, so we only need to look at the 'head' */ - pos = daemon->normal_timeout_head; + /* normal timeouts are sorted, so we only need to look at the 'tail' (oldest) */ + pos = daemon->normal_timeout_tail; if ( (NULL != pos) && (0 != pos->connection_timeout) ) {