- Fixed bug #47035 (dns_get_record returns a garbage byte at the end of a TXT record)

This commit is contained in:
Felipe Pena 2009-01-08 17:19:08 +00:00
parent b8708d43f6
commit 6e860e51d4

View File

@ -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: