resolve: initialize 'current' when SD_RESOLVED_NO_STALE is set
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 31 Jul 2023 13:11:51 +0000 (22:11 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 31 Jul 2023 13:11:58 +0000 (22:11 +0900)
commit6756b61626afc343f8b6824f41bef67bb442f1d7
tree5047989547a7a5289391ea992ad53374ee3edb91
parent4da252c59a30d94f7d6a698c6460c45a37e13154
resolve: initialize 'current' when SD_RESOLVED_NO_STALE is set

Otherwise, the check below is always fail.
```
if (FLAGS_SET(query_flags, SD_RESOLVED_NO_STALE) && j->until_valid < current)
```

Follow-up for 5ed91481abea382dc486507556e5cdf0f36b796f.
src/resolve/resolved-dns-cache.c