Skip to content
Commit a312978c authored by Yi EungJun's avatar Yi EungJun Committed by Zbigniew Jędrzejewski-Szmek
Browse files

journal-gatewayd: fix segfault with certain request (#3893)

When client requests to get logs with `follow` and `KEY=match` that
doesn't match any log entry, journal-gatewayd segfaulted.

Make request_reader_entries to return zero in such case to wait for
matching entries.

This fixes https://github.com/systemd/systemd/issues/3873.

(cherry picked from commit 3475fc58)
parent c7f5a7d8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment