diff options
author | Pierre Joye <pajoye@php.net> | 2010-06-17 09:26:29 +0000 |
---|---|---|
committer | Pierre Joye <pajoye@php.net> | 2010-06-17 09:26:29 +0000 |
commit | bc226fafed9149734c1a9b55e847ca54d863ab37 (patch) | |
tree | e940b683be5ea145c4c52c2eafe8870cfb800454 | |
parent | 13b692e4c967f00ce1fc34093821135281f8af7a (diff) | |
download | php-git-bc226fafed9149734c1a9b55e847ca54d863ab37.tar.gz |
- Fix bug #52101, dns_get_record()garbage in 'ipv6' field
-rw-r--r-- | ext/standard/dns_win32.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/standard/dns_win32.c b/ext/standard/dns_win32.c index 0823cc0737..a15a3d0f4f 100644 --- a/ext/standard/dns_win32.c +++ b/ext/standard/dns_win32.c @@ -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); } |