Conflicting options value in DNS library
I am trying to use the library to send a DNS request via TCP. When looking at the sources to understand how it works I realized that the two options DNS_CLIENTREQOPT_ALLOWRUN and DNS_REQUESTOPT_TCP have the same value (== 1). I think this is a problem because they are used in the same parameter:
In dns_client_request function:
client.c@1648 : options & DNS_CLIENTREQOPT_ALLOWRUN) == 0
The function calls dns_client_startrequest
with this options
parameter which then call dns_request_createvia3
and dns_request_createvia4
.
In dns_request_createvia4 function:
request.c@1003 : tcp = ISC_TF((options & DNS_REQUESTOPT_TCP) != 0);
Branch v9_10_3_patch