Pick newest session as documented, not oldest, from Magnus Gross.

This commit is contained in:
nicm 2024-04-04 22:44:40 +00:00
parent 6207a45139
commit a28175dbfd

View File

@ -410,7 +410,7 @@ server_find_session(struct session *s,
static int static int
server_newer_session(struct session *s_loop, struct session *s_out) server_newer_session(struct session *s_loop, struct session *s_out)
{ {
return (timercmp(&s_loop->activity_time, &s_out->activity_time, <)); return (timercmp(&s_loop->activity_time, &s_out->activity_time, >));
} }
static int static int