dns_server: fix passthrouth ipset issue

This commit is contained in:
Nick Peng
2022-04-26 20:43:11 +08:00
parent 75dda9340d
commit 22e13b40db
2 changed files with 57 additions and 40 deletions

View File

@@ -2087,6 +2087,9 @@ static int _dns_update_an(struct dns_context *context, dns_rr_type type, struct
break;
default: {
unsigned char *ttl_ptr = start - sizeof(int) - sizeof(short);
if (param->ip_ttl < 0) {
break;
}
_dns_write_int(&ttl_ptr, param->ip_ttl);
} break;
}