summaryrefslogtreecommitdiffstats
path: root/src/journal-remote/journal-upload.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-09-25 11:22:13 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-09-25 11:22:13 +0200
commitccc0ec6f71970aadc555f41321238860d8ae2a74 (patch)
treecea83f24d60419b4baf9a083eda4286431718696 /src/journal-remote/journal-upload.c
parentsd-event: use new cleanup function more (diff)
downloadsystemd-ccc0ec6f71970aadc555f41321238860d8ae2a74.tar.xz
systemd-ccc0ec6f71970aadc555f41321238860d8ae2a74.zip
journal-upload: fix off-by-one in assert()
CID #1394386.
Diffstat (limited to 'src/journal-remote/journal-upload.c')
-rw-r--r--src/journal-remote/journal-upload.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/journal-remote/journal-upload.c b/src/journal-remote/journal-upload.c
index 5e17d36393..157ed413b1 100644
--- a/src/journal-remote/journal-upload.c
+++ b/src/journal-remote/journal-upload.c
@@ -284,7 +284,7 @@ static size_t fd_input_callback(void *buf, size_t size, size_t nmemb, void *user
ssize_t r;
assert(u);
- assert(nmemb <= SSIZE_MAX / size);
+ assert(nmemb < SSIZE_MAX / size);
if (u->input < 0)
return 0;