mirror of
https://github.com/php/php-src.git
synced 2024-09-25 11:57:26 +00:00
- Fixed bug #47035 (dns_get_record returns a garbage byte at the end of a TXT record)
This commit is contained in:
parent
b8708d43f6
commit
6e860e51d4
@ -470,7 +470,7 @@ static u_char *php_parserr(u_char *cp, querybuf *answer, int type_to_fetch, int
|
||||
tp[dlen] = '\0';
|
||||
cp += dlen;
|
||||
|
||||
add_ascii_assoc_rt_stringl(*subarray, "txt", tp, dlen, ZSTR_AUTOFREE);
|
||||
add_ascii_assoc_rt_stringl(*subarray, "txt", tp, dlen - 1, ZSTR_AUTOFREE);
|
||||
}
|
||||
break;
|
||||
case DNS_T_SOA:
|
||||
|
Loading…
Reference in New Issue
Block a user