summaryrefslogtreecommitdiffstats
path: root/src/resolve.c
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2014-08-18 22:01:38 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2014-08-18 22:01:38 +0200
commit5d111c83ff2fb9fb1e094ccfdfa919a4731ec05b (patch)
tree277a0d2b69cc2ba69cbeff2e6f4fbb4eb39080f0 /src/resolve.c
parent2352e1a79e6f77cb894f5b65b1632e27cd0695a9 (diff)
downloadfastd-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.c2
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)) {