]> git.ipfire.org Git - thirdparty/systemd.git/commit
varlink: refuse empty () structs/enums
authorLennart Poettering <lennart@poettering.net>
Thu, 12 Oct 2023 13:21:50 +0000 (15:21 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 12 Oct 2023 13:25:16 +0000 (15:25 +0200)
commit6fa09278b8ae30c672451dbcfd05a7d5f072fe71
treefd0d9224a40fb6cd6ec2c65d1d2b7127fcdd3aec
parent558dc668f65bd04a58eead656d5232efbe543fae
varlink: refuse empty () structs/enums

If we encounter an empty struct in the varlink IDL it could also be an
empty enum. Refuse this to avoid the ambiguity.

The spec doesn't cover this case clearly, hence let's better be on the
safe side and refuse it rather than making a decision what it means.
src/shared/varlink-idl.c