# HG changeset patch # User Timo Sirainen # Date 1510923380 -7200 # Node ID 3d99067fb0b9cad7a4b0a444c84a68ab9273e04b # Parent 6b14fe31f657877d1d37cd8bf69f7ba9cbe39516 director: Make sure user's timestamp isn't set to future The sending director could have the system clock slightly in the future. diff -r 6b14fe31f657 -r 3d99067fb0b9 src/director/director-connection.c --- a/src/director/director-connection.c Thu Nov 16 00:53:34 2017 +0200 +++ b/src/director/director-connection.c Fri Nov 17 14:56:20 2017 +0200 @@ -718,6 +718,10 @@ return FALSE; } + if (timestamp > ioloop_time) { + /* make sure we don't set user's timestamp to future */ + timestamp = ioloop_time; + } (void)director_user_refresh(conn, username_hash, host, timestamp, weak, &forced, &user); if (user->timestamp < timestamp) {