]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-http: test-http-payload - Fix segfault occurring upon out-of-sequence request...
authorStephan Bosch <stephan.bosch@open-xchange.com>
Thu, 12 Jan 2023 01:53:38 +0000 (02:53 +0100)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Mon, 30 Jan 2023 19:48:46 +0000 (19:48 +0000)
src/lib-http/test-http-payload.c

index 726e427c9a647a9297f9c738309a861b16974c47..d0a095eff636f0ef0941800f70f2f6ebd7db7ccf 100644 (file)
@@ -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;