summaryrefslogtreecommitdiff
path: root/src/journal
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2020-05-12 19:15:38 +0200
committerLennart Poettering <lennart@poettering.net>2020-05-13 21:32:34 +0200
commit020b4a023c2c6dda83afb9a82a62e640569c40c1 (patch)
treed65a09e5cafcd2610299a4b9bdc8aea70810e5ee /src/journal
parent549b7379ba404c33fd448d2bca46a57f6529b00b (diff)
downloadsystemd-020b4a023c2c6dda83afb9a82a62e640569c40c1.tar.gz
journald: use the fact that client_context_release() returns NULL
Diffstat (limited to 'src/journal')
-rw-r--r--src/journal/journald-stream.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/journal/journald-stream.c b/src/journal/journald-stream.c
index 593bbc1476..4f8b5ce301 100644
--- a/src/journal/journald-stream.c
+++ b/src/journal/journald-stream.c
@@ -563,8 +563,7 @@ static int stdout_stream_process(sd_event_source *es, int fd, uint32_t revents,
goto terminate;
s->ucred = *ucred;
- client_context_release(s->server, s->context);
- s->context = NULL;
+ s->context = client_context_release(s->server, s->context);
}
s->length += l;