]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
oops, already have data->entry->mem_obj->fd_of_first_client, don't need
authorwessels <>
Sat, 13 Apr 1996 03:15:33 +0000 (03:15 +0000)
committerwessels <>
Sat, 13 Apr 1996 03:15:33 +0000 (03:15 +0000)
storePendingFirstFD()

src/http.cc

index dfcc9405c46a4a066591d54ea0c021a4ccaeb6b4..c7d171874b71feb9552e368aa1e66a1cb6626f99 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: http.cc,v 1.41 1996/04/12 05:15:29 wessels Exp $ */
+/* $Id: http.cc,v 1.42 1996/04/12 21:15:33 wessels Exp $ */
 
 /*
  * DEBUG: Section 11          http: HTTP
@@ -464,7 +464,9 @@ static void httpSendRequest(fd, data)
 
     /* Add Forwarded: header */
     ybuf = get_free_4k_page(__FILE__,__LINE__);
-    if ((cfd = storePendingFirstFD(data->entry)) < 0) {
+    if (data->entry->mem_obj)
+       cfd = data->entry->mem_obj->fd_of_first_client;
+    if (cfd < 0) {
         sprintf(ybuf, "Forwarded: by http://%s:%d/\r\n",
            getMyHostname(), getAsciiPortNum());
     } else {