diff options
Diffstat (limited to 'src/async.c')
-rw-r--r-- | src/async.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/async.c b/src/async.c index 28895b3..0c37842 100644 --- a/src/async.c +++ b/src/async.c @@ -45,8 +45,10 @@ static void handle_resolve_return(fastd_context_t *ctx) { exit_errno(ctx, "handle_resolve_return: read"); } - fastd_peer_t *peer; - for (peer = ctx->peers; peer; peer = peer->next) { + size_t i; + for (i = 0; i < VECTOR_LEN(ctx->peers); i++) { + fastd_peer_t *peer = VECTOR_INDEX(ctx->peers, i); + if (!peer->config) continue; |