]> granicus.if.org Git - php/commitdiff
- Fix bug #52101, dns_get_record()garbage in 'ipv6' field
authorPierre Joye <pajoye@php.net>
Thu, 17 Jun 2010 09:26:29 +0000 (09:26 +0000)
committerPierre Joye <pajoye@php.net>
Thu, 17 Jun 2010 09:26:29 +0000 (09:26 +0000)
ext/standard/dns_win32.c

index 0823cc07379ddf36b9b88fea4215ed53e38db356..a15a3d0f4f64138652ea69fb377f34a1d549b7c8 100644 (file)
@@ -276,6 +276,12 @@ static void php_parserr(PDNS_RECORD pRec, int type_to_fetch, int store, zval **s
                                        }
                                }
 
+                               if (have_v6_break && in_v6_break) {
+                                       tp[0] = ':';
+                                       tp++;
+                               }
+                               tp[0] = '\0';
+
                                add_assoc_string(*subarray, "type", "AAAA", 1);
                                add_assoc_string(*subarray, "ipv6", buf, 1);
                        }