]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
When using res_send/res_query/res_search, the caller must either
authorJacques Vidrine <nectar@FreeBSD.org>
Fri, 13 Sep 2002 20:31:29 +0000 (20:31 +0000)
committerJacques Vidrine <nectar@FreeBSD.org>
Fri, 13 Sep 2002 20:31:29 +0000 (20:31 +0000)
commit2e4dbbaa930e32c8768110b5888ed88c61c417a3
tree4abdf8e587e50c215c8768bca481fe102ec47c16
parent8b10ca9ba94d9b6c1031c5c006df3011fcc8b058
When using res_send/res_query/res_search, the caller must either
insure enough space is available for the response, or be prepared
to resize the buffer and retry as necessary.

Do the conservative thing and make sure enough space is available.

Reviewed by: silence on freebsd-audit
lib/libc/net/getaddrinfo.c
lib/libc/net/gethostbydns.c
lib/libc/net/getnetbydns.c
lib/libc/net/name6.c
lib/libc/net/res_query.c
lib/libc/net/res_update.c