]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/journal-remote/journal-remote.c
journal-remote: set a limit on the number of fields in a message
[thirdparty/systemd.git] / src / journal-remote / journal-remote.c
index 3c0916c4383236611dc037d77e1f98fa2f865f60..1da32c5f85615300eb380e7ce18190e743510111 100644 (file)
@@ -407,6 +407,9 @@ int journal_remote_handle_raw_source(
                 log_debug("%zu active sources remaining", s->active);
                 return 0;
         } else if (r == -E2BIG) {
+                log_notice("Entry with too many fields, skipped");
+                return 1;
+        } else if (r == -ENOBUFS) {
                 log_notice("Entry too big, skipped");
                 return 1;
         } else if (r == -EAGAIN) {