diff options
author | Lennart Poettering <lennart@poettering.net> | 2013-05-15 01:36:09 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2013-05-15 01:36:09 +0200 |
commit | 13c299d3a8603db8fdfc715eaea69ce5acd7aecb (patch) | |
tree | 473811b4cbc15f05dde71361835baf9ad5775228 /src/libsystemd-bus/bus-message.c | |
parent | 47e6ce32bb5bc8353c2070b8247be82410f4d78e (diff) |
bus: minor fixes
Diffstat (limited to 'src/libsystemd-bus/bus-message.c')
-rw-r--r-- | src/libsystemd-bus/bus-message.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libsystemd-bus/bus-message.c b/src/libsystemd-bus/bus-message.c index 5783140cf8..721dafe38b 100644 --- a/src/libsystemd-bus/bus-message.c +++ b/src/libsystemd-bus/bus-message.c @@ -3568,6 +3568,9 @@ int bus_message_seal(sd_bus_message *m, uint64_t serial) { if (m->n_containers > 0) return -EBADMSG; + if (m->poisoned) + return -ESTALE; + /* If there's a non-trivial signature set, then add it in here */ if (!isempty(m->root_container.signature)) { r = message_append_field_signature(m, SD_BUS_MESSAGE_HEADER_SIGNATURE, m->root_container.signature, NULL); |