]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-http: Remove dead code
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Sun, 5 Nov 2017 15:46:03 +0000 (17:46 +0200)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Sun, 5 Nov 2017 15:46:03 +0000 (17:46 +0200)
This code branch became dead after 22ee6e1e6193299034ab99f77a650290de2fd6ca

src/lib-http/http-transfer-chunked.c

index d098075a71b16ece4bb48f1cfb68ce233a9a1fde..817b3e5da6914770aac0a551a63195dff7918586 100644 (file)
@@ -411,11 +411,6 @@ http_transfer_chunked_istream_read_data(
        if (tcstream->chunk_pos >= tcstream->chunk_size)
                tcstream->state = HTTP_CHUNKED_PARSE_STATE_DATA_READY;
 
-       if ( ret < 0 ) {
-               stream->pos = stream->pos+size;
-               return ret;
-       }
-
        ret = size;
        stream->pos = stream->pos+size;
        return ret;