mirror of
https://github.com/systemd/systemd.git
synced 2024-11-08 11:27:32 +03:00
sd-bus: don't treat KDBUS_ITEM_TIMESTAMP as unknown item
In bus_kernel_translate_message(), we print a DEBUG message on unknown items. But right now, we also print this message for KDBUS_ITEM_TIMESTAMP despite parsing it properly. Fix this!
This commit is contained in:
parent
603d5da504
commit
95cdf5e3a9
@ -1332,8 +1332,7 @@ static int bus_kernel_translate_message(sd_bus *bus, struct kdbus_msg *k) {
|
||||
KDBUS_ITEM_FOREACH(d, k, items) {
|
||||
if (d->type == KDBUS_ITEM_TIMESTAMP)
|
||||
ts = &d->timestamp;
|
||||
|
||||
if (d->type >= _KDBUS_ITEM_KERNEL_BASE && d->type < _KDBUS_ITEM_KERNEL_BASE + ELEMENTSOF(translate)) {
|
||||
else if (d->type >= _KDBUS_ITEM_KERNEL_BASE && d->type < _KDBUS_ITEM_KERNEL_BASE + ELEMENTSOF(translate)) {
|
||||
if (found)
|
||||
return -EBADMSG;
|
||||
found = d;
|
||||
|
Loading…
Reference in New Issue
Block a user