Fix ptr Issue

This commit is contained in:
Nick Peng
2018-06-02 19:00:52 +08:00
parent cce215b2e8
commit 9f727cdec8

View File

@@ -451,7 +451,6 @@ static int _dns_server_process_ptr(struct dns_request *request, struct dns_packe
struct ifaddrs *ifa = NULL;
unsigned char *addr;
char reverse_addr[128] = {0};
char host_name[DNS_MAX_CNAME_LEN];
int found = 0;
if (getifaddrs(&ifaddr) == -1) {
@@ -496,6 +495,7 @@ static int _dns_server_process_ptr(struct dns_request *request, struct dns_packe
goto errout;
}
request->rcode = DNS_RC_NOERROR;
_dns_reply(request);
freeifaddrs(ifaddr);