From: Stephan Bosch Date: Thu, 12 Jan 2023 01:53:38 +0000 (+0100) Subject: lib-http: test-http-payload - Fix segfault occurring upon out-of-sequence request... X-Git-Tag: 2.4.0~3030 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=492ab6ab9d228b3d5a9ba0aeb0c7475465394284;p=thirdparty%2Fdovecot%2Fcore.git lib-http: test-http-payload - Fix segfault occurring upon out-of-sequence request completion. --- diff --git a/src/lib-http/test-http-payload.c b/src/lib-http/test-http-payload.c index 726e427c9a..d0a095eff6 100644 --- a/src/lib-http/test-http-payload.c +++ b/src/lib-http/test-http-payload.c @@ -1557,6 +1557,9 @@ static void test_client_echo_continue(void *context ATTR_UNUSED) struct istream *fstream; const char *path = paths[client_files_last]; + if (path == NULL) + continue; + fstream = test_file_open(path, NULL, NULL); if (fstream == NULL) { paths[client_files_last] = NULL;