Fix ptr Issue
This commit is contained in:
@@ -451,7 +451,6 @@ static int _dns_server_process_ptr(struct dns_request *request, struct dns_packe
|
|||||||
struct ifaddrs *ifa = NULL;
|
struct ifaddrs *ifa = NULL;
|
||||||
unsigned char *addr;
|
unsigned char *addr;
|
||||||
char reverse_addr[128] = {0};
|
char reverse_addr[128] = {0};
|
||||||
char host_name[DNS_MAX_CNAME_LEN];
|
|
||||||
int found = 0;
|
int found = 0;
|
||||||
|
|
||||||
if (getifaddrs(&ifaddr) == -1) {
|
if (getifaddrs(&ifaddr) == -1) {
|
||||||
@@ -496,6 +495,7 @@ static int _dns_server_process_ptr(struct dns_request *request, struct dns_packe
|
|||||||
goto errout;
|
goto errout;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
request->rcode = DNS_RC_NOERROR;
|
||||||
_dns_reply(request);
|
_dns_reply(request);
|
||||||
|
|
||||||
freeifaddrs(ifaddr);
|
freeifaddrs(ifaddr);
|
||||||
|
|||||||
Reference in New Issue
Block a user