From owner-cvs-all Tue Aug 27 2: 2:55 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 84DDD37B400; Tue, 27 Aug 2002 02:02:53 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3B62F43E77; Tue, 27 Aug 2002 02:02:53 -0700 (PDT) (envelope-from yar@FreeBSD.org) Received: from freefall.freebsd.org (yar@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g7R92rJU037441; Tue, 27 Aug 2002 02:02:53 -0700 (PDT) (envelope-from yar@freefall.freebsd.org) Received: (from yar@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g7R92rvg037440; Tue, 27 Aug 2002 02:02:53 -0700 (PDT) Message-Id: <200208270902.g7R92rvg037440@freefall.freebsd.org> From: Yar Tikhiy Date: Tue, 27 Aug 2002 02:02:53 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/libexec/ftpd ftpd.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 yar 2002/08/27 02:02:53 PDT Modified files: libexec/ftpd ftpd.c Log: More inithosts() fixes: o Don't free(3) memory occupied by host structures already in the host list. o Set hrp->hostinfo to NULL if a host record has to stay in the host list, but is to be ignored. Selecthost() knows that. o Reduce the pollution with excessive NULL checks. o Close a couple of memory leaks. MFC after: 1 week Revision Changes Path 1.126 +15 -8 src/libexec/ftpd/ftpd.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message