summaryrefslogtreecommitdiffstats
path: root/src/resolve.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/resolve.c')
-rw-r--r--src/resolve.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/resolve.c b/src/resolve.c
index c01a88f..3b15f57 100644
--- a/src/resolve.c
+++ b/src/resolve.c
@@ -101,6 +101,9 @@ static void* resolve_peer(void *varg) {
}
void fastd_resolve_peer(fastd_context_t *ctx, fastd_peer_t *peer) {
+ if (!peer->config)
+ exit_bug(ctx, "trying to resolve temporary peer");
+
if (timespec_after(&peer->last_resolve, &peer->last_resolve_return)) {
pr_debug(ctx, "not resolving %P as there is already a resolve running", peer);
return;