]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Remove duplicated code in gopher fix
authorHenrik Nordstrom <henrik@henriknordstrom.net>
Fri, 16 Sep 2011 09:01:55 +0000 (03:01 -0600)
committerAmos Jeffries <squid3@treenet.co.nz>
Fri, 16 Sep 2011 09:01:55 +0000 (03:01 -0600)
harmless copy-paste error when patch was forward-ported from squid-2

src/gopher.cc

index 312cc8ce55430fd7074e62df54c0eb509ee9b598..eedcb9678c39e4a0cba7dea83d4b4d1414ed5e0a 100644 (file)
@@ -462,14 +462,6 @@ gopherToHTML(GopherStateData * gopherState, char *inbuf, int len)
             gopherState->len += llen;
             break;
         }
-        if (!lpos) {
-            /* there is no complete line in inbuf */
-            /* copy it to temp buffer */
-            /* note: llen is adjusted above */
-            xmemcpy(gopherState->buf + gopherState->len, pos, llen);
-            gopherState->len += llen;
-            break;
-        }
         if (gopherState->len != 0) {
             /* there is something left from last tx. */
             xmemcpy(line, gopherState->buf, gopherState->len);