From owner-freebsd-bugs Fri Jul 25 02:10:06 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id CAA23741 for bugs-outgoing; Fri, 25 Jul 1997 02:10:06 -0700 (PDT) Received: (from gnats@localhost) by hub.freebsd.org (8.8.5/8.8.5) id CAA23735; Fri, 25 Jul 1997 02:10:02 -0700 (PDT) Resent-Date: Fri, 25 Jul 1997 02:10:02 -0700 (PDT) Resent-Message-Id: <199707250910.CAA23735@hub.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@FreeBSD.ORG, tolik@www.tomsk.su, tolik@mpeks.tomsk.su Received: from www.tomsk.su (www.tomsk.su [193.124.185.18]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id CAA23535 for ; Fri, 25 Jul 1997 02:06:02 -0700 (PDT) Received: (from tolik@localhost) by www.tomsk.su (8.8.5/8.8.5) id RAA16942; Fri, 25 Jul 1997 17:03:15 +0800 (TSD) Message-Id: <199707250903.RAA16942@www.tomsk.su> Date: Fri, 25 Jul 1997 17:03:15 +0800 (TSD) From: "Anatoly A. Orehovsky" Reply-To: tolik@www.tomsk.su, tolik@mpeks.tomsk.su To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: bin/4165: Problem with http-auth or http-proxy-auth in fetch Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >Number: 4165 >Category: bin >Synopsis: fetch gone to interminable query cycle after successful http-auth or http-proxy-auth >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Jul 25 02:10:00 PDT 1997 >Last-Modified: >Originator: Anatoly A. Orehovsky >Organization: CISA Ltd. >Release: FreeBSD 2.2.2-RELEASE i386 >Environment: Any http-auth or http-proxy-auth required query to web-server. >Description: After successful authentication fetch gone to interminable query cycle, although web-server sended answer "200 Ok". Wrong place for "autherror = 0" in fetch/http.c. >How-To-Repeat: HTTP_AUTH="basic:realm:user:password" fetch http://http-auth-required-resource or HTTP_PROXY_AUTH="basic:realm:user:password" fetch http://http-proxy-auth-required-resource If realm&user&password is right, fetch go to interminable query cycle staight. >Fix: Patch: *** http.c.orig Mon Mar 10 14:12:51 1997 --- http.c Fri Jul 25 16:43:18 1997 *************** *** 433,439 **** restarting = fs->fs_restart; redirection = 0; retrying = 0; - autherror = 0; /* * Figure out the timeout. Prefer the -T command-line value, --- 433,438 ---- *************** *** 657,662 **** --- 656,662 ---- status = http_first_line(line); /* In the future, we might handle redirection and other responses. */ + autherror = 0; switch(status) { case 100: /* Continue */ goto got100reply; -- Anatoly A. Orehovsky. AO9-RIPE. AAO1-RIPN >Audit-Trail: >Unformatted: