- fixup WKS test on buildhost without servicebyname.

git-svn-id: file:///svn/unbound/trunk@4319 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards 2017-08-29 08:56:22 +00:00
parent cfcf5437f4
commit 2f270e6fbb
2 changed files with 2 additions and 0 deletions

View file

@ -3,6 +3,7 @@
- zero qinfo in handle_request, this zeroes local_alias and also the
qname member.
- new keys and certs for dnscrypt tests.
- fixup WKS test on buildhost without servicebyname.
28 August 2017: Wouter
- Fix #1415: patch to free dnscrypt environment on reload.

View file

@ -1701,6 +1701,7 @@ int sldns_str2wire_wks_buf(const char* str, uint8_t* rd, size_t* len)
int serv_port;
struct servent *serv = getservbyname(token, proto_str);
if(serv) serv_port=(int)ntohs((uint16_t)serv->s_port);
else if(strcasecmp(token, "domain")==0) serv_port=53;
else {
serv_port = atoi(token);
if(serv_port == 0 && strcmp(token, "0") != 0) {