]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Remove duplicated code in gopher fix
authorHenrik Nordstrom <henrik@henriknordstrom.net>
Wed, 31 Aug 2011 11:50:14 +0000 (13:50 +0200)
committerHenrik Nordstrom <henrik@henriknordstrom.net>
Wed, 31 Aug 2011 11:50:14 +0000 (13:50 +0200)
harmless copy-paste error when patch was forward-ported from squid-2

src/gopher.cc

index f15b387a239ad321e1c4be2e6ab9c8a90e65dec6..52ef9adfdf308b5e65bd294b43d9d0a86aa357fd 100644 (file)
@@ -464,14 +464,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 */
-            memcpy(gopherState->buf + gopherState->len, pos, llen);
-            gopherState->len += llen;
-            break;
-        }
         if (gopherState->len != 0) {
             /* there is something left from last tx. */
             memcpy(line, gopherState->buf, gopherState->len);