chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
journal: consistently allow type==0 to mean "any type"
[elogind.git]
/
src
/
journal
/
journal-authenticate.c
diff --git
a/src/journal/journal-authenticate.c
b/src/journal/journal-authenticate.c
index f9bd686c11a4965cc7a955c9120e061136d946e8..fd3b82134f313192a9954276a1f2ce3fcf6eeb24 100644
(file)
--- a/
src/journal/journal-authenticate.c
+++ b/
src/journal/journal-authenticate.c
@@
-246,7
+246,7
@@
int journal_file_hmac_put_object(JournalFile *f, int type, Object *o, uint64_t p
if (r < 0)
return r;
} else {
- if (type >
=
0 && o->object.type != type)
+ if (type > 0 && o->object.type != type)
return -EBADMSG;
}