]> git.ipfire.org Git - thirdparty/systemd.git/commit
sd-event: when an event source fails, don't assume the type of it is still set
authorLennart Poettering <lennart@poettering.net>
Fri, 23 Dec 2016 22:26:15 +0000 (23:26 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 3 Feb 2017 10:51:57 +0000 (11:51 +0100)
commit8f5c235d9e5f2e80cd2cf55c4585cddcdec5931b
tree6a2ff1fa49becca139dcdc7aa17ea605e8b807da
parent9a1c8f2d2454ba5ccac4538137bc112d6fe6454f
sd-event: when an event source fails, don't assume the type of it is still set

If a callback of an event source returns an error, then the event source
might already be half-destroyed, if the callback dropped all refs.
Hence, don't assume that the type is still valid, and save it before we
issue the callback.
src/libsystemd/sd-event/sd-event.c