diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2014-08-18 22:01:38 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2014-08-18 22:01:38 +0200 |
commit | 5d111c83ff2fb9fb1e094ccfdfa919a4731ec05b (patch) | |
tree | 277a0d2b69cc2ba69cbeff2e6f4fbb4eb39080f0 /src/resolve.c | |
parent | 2352e1a79e6f77cb894f5b65b1632e27cd0695a9 (diff) | |
download | fastd-5d111c83ff2fb9fb1e094ccfdfa919a4731ec05b.tar fastd-5d111c83ff2fb9fb1e094ccfdfa919a4731ec05b.zip |
peer: add a flag `dynamic' instead of checking the config field for NULL
Diffstat (limited to 'src/resolve.c')
-rw-r--r-- | src/resolve.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resolve.c b/src/resolve.c index b11ce9b..df48fec 100644 --- a/src/resolve.c +++ b/src/resolve.c @@ -113,7 +113,7 @@ static void* resolve_peer(void *varg) { /** Starts to resolve a given dynamic remote of a peer to an IP address asynchronously */ void fastd_resolve_peer(fastd_peer_t *peer, fastd_remote_t *remote) { - if (!peer->config) + if (fastd_peer_is_dynamic(peer)) exit_bug("trying to resolve dynamic peer"); if (!fastd_timed_out(&remote->last_resolve_timeout)) { |