From 07848b20fff2821ee74839ec7e57962bb2bc9702 Mon Sep 17 00:00:00 2001 From: Willem Toorop Date: Thu, 23 Oct 2014 13:55:37 +0200 Subject: [PATCH] fix: add OPT to query when just options specified --- src/stub.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stub.c b/src/stub.c index 27d25e4c..33af7fe3 100644 --- a/src/stub.c +++ b/src/stub.c @@ -113,7 +113,7 @@ getdns_make_query_pkt_buf(getdns_context *context, const char *name, with_opt = edns_do_bit || edns_maximum_udp_payload_size > 512 || edns_extended_rcode != 0 || edns_version != 0 - || opt_options_size > 0; + || noptions; assert(buf); assert(olen);