diff options
author | 2019-12-02 08:56:03 +0000 | |
---|---|---|
committer | 2019-12-02 08:56:03 +0000 | |
commit | a8b24d2eed4466c37d7520be8fa8ec05e7086f46 (patch) | |
tree | a404ae3e84b73b832f0a19ec07c75b68400bd155 | |
parent | Add an "all" mode for status and a much more compact and readable histogram (diff) | |
download | wireguard-openbsd-a8b24d2eed4466c37d7520be8fa8ec05e7086f46.tar.xz wireguard-openbsd-a8b24d2eed4466c37d7520be8fa8ec05e7086f46.zip |
increment refcount before doing the call to resolve(); ok florian@
Diffstat (limited to '')
-rw-r--r-- | sbin/unwind/resolver.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/unwind/resolver.c b/sbin/unwind/resolver.c index ea5e5939ede..20bae1a1676 100644 --- a/sbin/unwind/resolver.c +++ b/sbin/unwind/resolver.c @@ -1,4 +1,4 @@ -/* $OpenBSD: resolver.c,v 1.88 2019/12/02 06:26:52 otto Exp $ */ +/* $OpenBSD: resolver.c,v 1.89 2019/12/02 08:56:03 otto Exp $ */ /* * Copyright (c) 2018 Florian Obser <florian@openbsd.org> @@ -782,10 +782,10 @@ try_next_resolver(struct running_query *rq) } evtimer_add(&rq->timer_ev, &tv); + rq->running++; if (resolve(res, query_imsg->qname, query_imsg->t, query_imsg->c, query_imsg, resolve_done) != 0) goto err; - rq->running++; return 0; |