diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-12-16 19:27:07 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-12-16 19:27:07 +0100 |
commit | 4475652054616ded16485341b081abf42cc6c08e (patch) | |
tree | 30b3f62bd4107766630e486cf67b8fcf117f9cd8 /src/fastd.c | |
parent | c91f3ac6acf933a8dd89cca33081cfd4dfeabadc (diff) | |
download | fastd-4475652054616ded16485341b081abf42cc6c08e.tar fastd-4475652054616ded16485341b081abf42cc6c08e.zip |
resolve: save a timestamp in the resolve return to ensure we don't confuse remotes before and after reconfiguration
Diffstat (limited to 'src/fastd.c')
-rw-r--r-- | src/fastd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fastd.c b/src/fastd.c index a9cb0c4..31bb90a 100644 --- a/src/fastd.c +++ b/src/fastd.c @@ -516,7 +516,7 @@ static void handle_resolve_returns(fastd_context_t *ctx) { fastd_remote_t *remote; for (remote = peer->remotes; remote; remote = remote->next) { - if (remote == resolve_return.remote) + if (remote == resolve_return.remote && timespec_equal(&remote->last_resolve, &resolve_return.resolve_time)) break; } |