From owner-cvs-all Mon Jul 17 14: 9:25 2000 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 886FA37BD77; Mon, 17 Jul 2000 14:09:12 -0700 (PDT) (envelope-from des@FreeBSD.org) Received: (from des@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id OAA59539; Mon, 17 Jul 2000 14:09:12 -0700 (PDT) (envelope-from des@FreeBSD.org) Message-Id: <200007172109.OAA59539@freefall.freebsd.org> From: Dag-Erling Smorgrav Date: Mon, 17 Jul 2000 14:09:12 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libfetch http.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG des 2000/07/17 14:09:12 PDT Modified files: lib/libfetch http.c Log: Don't forget to set file descriptor to -1 after closing it, since the code outside the loop inspects it to determine whether or not we succeeded in retrieving the requested document. This fixes a bug where fetchGetHTTP() would return a FILE with an invalid file descriptor if it hit the redirect limit without locating the requested document. Revision Changes Path 1.30 +2 -2 src/lib/libfetch/http.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message