]> granicus.if.org Git - php/commitdiff
Merge branch 'PHP-7.4'
authorNikita Popov <nikita.ppv@gmail.com>
Wed, 15 Jul 2020 13:10:50 +0000 (15:10 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Wed, 15 Jul 2020 13:10:50 +0000 (15:10 +0200)
* PHP-7.4:
  Fix bug #78008: dns_check_record() always return true on Alpine

1  2 
ext/standard/dns.c

index f77735ed722116c4711ac713456dfad5a0bd2c7e,3c9ce269c4a756aae552a13639abd34e01fb9529..625c778d5bde2182d58b801c13963de6bc7da522
@@@ -350,13 -358,12 +350,11 @@@ static void _php_dns_free_res(struct __
  #define php_dns_free_res(__res__)
  #endif
  
 -/* {{{ proto bool dns_check_record(string host [, string type])
 -   Check DNS records corresponding to a given Internet host name or IP address */
 +/* {{{ Check DNS records corresponding to a given Internet host name or IP address */
  PHP_FUNCTION(dns_check_record)
  {
- #ifndef MAXPACKET
- #define MAXPACKET  8192 /* max packet size used internally by BIND */
- #endif
-       u_char ans[MAXPACKET];
+       HEADER *hp;
+       querybuf answer;
        char *hostname, *rectype = NULL;
        size_t hostname_len, rectype_len = 0;
        int type = DNS_T_MX, i;