diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2017-02-28 19:23:16 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2017-02-28 19:30:43 +0300 |
commit | abc6bac2fbc1bd5927e1d2827eca2c15365c16b8 (patch) | |
tree | 8490cafc4e908dbe77bb7fd1c939ea391d166704 | |
parent | 0b4e8535a30c4b76dbb95b1c598f0a44325046d1 (diff) | |
download | libmicrohttpd-abc6bac2fbc1bd5927e1d2827eca2c15365c16b8.tar.gz libmicrohttpd-abc6bac2fbc1bd5927e1d2827eca2c15365c16b8.zip |
MHD_get_timeout(): fixed return of latest timeout instead of earliest.
-rw-r--r-- | src/microhttpd/daemon.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c index 0b27d2a7..9a345621 100644 --- a/src/microhttpd/daemon.c +++ b/src/microhttpd/daemon.c | |||
@@ -2995,8 +2995,8 @@ MHD_get_timeout (struct MHD_Daemon *daemon, | |||
2995 | have_timeout = MHD_YES; | 2995 | have_timeout = MHD_YES; |
2996 | } | 2996 | } |
2997 | } | 2997 | } |
2998 | /* normal timeouts are sorted, so we only need to look at the 'head' */ | 2998 | /* normal timeouts are sorted, so we only need to look at the 'tail' (oldest) */ |
2999 | pos = daemon->normal_timeout_head; | 2999 | pos = daemon->normal_timeout_tail; |
3000 | if ( (NULL != pos) && | 3000 | if ( (NULL != pos) && |
3001 | (0 != pos->connection_timeout) ) | 3001 | (0 != pos->connection_timeout) ) |
3002 | { | 3002 | { |