summaryrefslogtreecommitdiff
path: root/resolver.c
diff options
context:
space:
mode:
Diffstat (limited to 'resolver.c')
-rw-r--r--resolver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/resolver.c b/resolver.c
index a9860ebe..5a1db901 100644
--- a/resolver.c
+++ b/resolver.c
@@ -1252,7 +1252,7 @@ ldns_resolver_send_pkt(ldns_pkt **answer, ldns_resolver *r,
}
}
- if (answer) {
+ if (answer && answer_pkt) {
*answer = answer_pkt;
}