]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-http: server: Error handling fix - avoid potential crash when request is already...
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Thu, 11 Feb 2016 11:58:54 +0000 (13:58 +0200)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Thu, 11 Feb 2016 11:58:54 +0000 (13:58 +0200)
src/lib-http/http-server-request.c

index c380217e1089b02c5881eddac21adc8e591eb1c4..cdacab408524c12275b7873076e2caf842f9fa7f 100644 (file)
@@ -408,7 +408,7 @@ http_server_istream_read(struct istream_private *stream)
        if (req == NULL) {
                /* request already gone (we shouldn't get here) */
                stream->istream.stream_errno = EINVAL;
-               ret = -1;
+               return -1;
        }
 
        i_stream_seek(stream->parent, stream->parent_start_offset +