Stash the value of the store_first config setting in connection_closure.

If the configuration changes it should not affect a connection that
is already in progress.
This commit is contained in:
Todd C. Miller
2021-04-23 16:56:17 -06:00
parent c2d3070fa1
commit 280fabac38
3 changed files with 13 additions and 11 deletions

View File

@@ -254,7 +254,7 @@ journal_seek(struct timespec *target, struct connection_closure *closure)
}
}
if (timespeccmp(&elapsed_time, target, >=)) {
if (sudo_timespeccmp(&elapsed_time, target, >=)) {
if (sudo_timespeccmp(&elapsed_time, target, ==)) {
ret = true;
break;