From: Timo Sirainen Date: Mon, 19 Sep 2016 13:20:14 +0000 (+0300) Subject: lib: Assert if i_stream_create_seekable_path(temp_path_prefix==NULL) X-Git-Tag: 2.2.26~248 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ec50efeec1c16fc3fcb64373caa3e69da2209d8a;p=thirdparty%2Fdovecot%2Fcore.git lib: Assert if i_stream_create_seekable_path(temp_path_prefix==NULL) If the stream becomes large enough it would crash then in a callback function, which makes debugging more difficult. --- diff --git a/src/lib/istream-seekable.c b/src/lib/istream-seekable.c index f6340be5f9..f051fcc257 100644 --- a/src/lib/istream-seekable.c +++ b/src/lib/istream-seekable.c @@ -477,6 +477,7 @@ i_stream_create_seekable_path(struct istream *input[], struct seekable_istream *sstream; struct istream *stream; + i_assert(temp_path_prefix != NULL); i_assert(max_buffer_size > 0); if (inputs_are_seekable(input))