diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2014-08-19 00:10:48 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2014-08-19 00:21:38 +0200 |
commit | 35a18b1dea21f006b38694dcf5c99f817411ad4d (patch) | |
tree | c6922a55085eba524ad9a997816429c6437b7430 /src/async.c | |
parent | 21ade840c989e9fcebef63e2999f5c31843c47b6 (diff) | |
download | fastd-35a18b1dea21f006b38694dcf5c99f817411ad4d.tar fastd-35a18b1dea21f006b38694dcf5c99f817411ad4d.zip |
Create peer structures for disabled peers as well
We have a 1:1 association between peers and peer configs now.
Diffstat (limited to 'src/async.c')
-rw-r--r-- | src/async.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/async.c b/src/async.c index 3ab5f5d..46419ee 100644 --- a/src/async.c +++ b/src/async.c @@ -63,7 +63,7 @@ void fastd_async_init(void) { /** Handles a DNS resolver response */ static void handle_resolve_return(const fastd_async_resolve_return_t *resolve_return) { fastd_peer_t *peer = fastd_peer_find_by_id(resolve_return->peer_id); - if (!peer) + if (!peer || !fastd_peer_is_enabled(peer)) return; if (fastd_peer_is_dynamic(peer)) |