From owner-cvs-all Fri Sep 13 13:31:34 2002 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 12B7337B400; Fri, 13 Sep 2002 13:31:30 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id C496D43E72; Fri, 13 Sep 2002 13:31:29 -0700 (PDT) (envelope-from nectar@FreeBSD.org) Received: from freefall.freebsd.org (nectar@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g8DKVTJU043561; Fri, 13 Sep 2002 13:31:29 -0700 (PDT) (envelope-from nectar@freefall.freebsd.org) Received: (from nectar@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g8DKVT9g043560; Fri, 13 Sep 2002 13:31:29 -0700 (PDT) Message-Id: <200209132031.g8DKVT9g043560@freefall.freebsd.org> From: Jacques Vidrine Date: Fri, 13 Sep 2002 13:31:29 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libc/net getaddrinfo.c gethostbydns.c getnetbydns.c name6.c res_query.c res_update.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG nectar 2002/09/13 13:31:29 PDT Modified files: lib/libc/net getaddrinfo.c gethostbydns.c getnetbydns.c name6.c res_query.c res_update.c Log: 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 Revision Changes Path 1.30 +1 -5 src/lib/libc/net/getaddrinfo.c 1.37 +1 -5 src/lib/libc/net/gethostbydns.c 1.22 +1 -5 src/lib/libc/net/getnetbydns.c 1.25 +1 -5 src/lib/libc/net/name6.c 1.24 +1 -5 src/lib/libc/net/res_query.c 1.5 +2 -1 src/lib/libc/net/res_update.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message