From: Timo Sirainen Date: Thu, 11 Feb 2016 11:58:54 +0000 (+0200) Subject: lib-http: server: Error handling fix - avoid potential crash when request is already... X-Git-Tag: 2.2.22.rc1~167 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e173fd380024b495c953dd4589f4908fa601eb8e;p=thirdparty%2Fdovecot%2Fcore.git lib-http: server: Error handling fix - avoid potential crash when request is already gone --- diff --git a/src/lib-http/http-server-request.c b/src/lib-http/http-server-request.c index c380217e10..cdacab4085 100644 --- a/src/lib-http/http-server-request.c +++ b/src/lib-http/http-server-request.c @@ -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 +