manager: be stricter with incomining notifications, warn properly about too large...
authorLennart Poettering <lennart@poettering.net>
Fri, 7 Oct 2016 10:12:10 +0000 (12:12 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 7 Oct 2016 10:12:10 +0000 (12:12 +0200)
commit045a3d5989f7565dc496013a9e96d95d86a12cc8
tree877e8bf9839fc4476a0e3a6611c5926e3b0dd34e
parentc55ae51e77e1fc56fde7bc3466dd2021ff3856cb
manager: be stricter with incomining notifications, warn properly about too large ones

Let's make the kernel let us know the full, original datagram size of the
incoming message. If it's larger than the buffer space provided by us, drop the
whole message with a warning.

Before this change the kernel would truncate the message for us to the buffer
space provided, and we'd not complain about this, and simply process the
incomplete message as far as it made sense.
src/core/manager.c