sd-bus: initialize mutex after we allocated the wqueue
authorLennart Poettering <lennart@poettering.net>
Thu, 17 Jan 2019 20:06:30 +0000 (21:06 +0100)
committerLukas Nykryn <lnykryn@redhat.com>
Mon, 3 Feb 2020 10:05:28 +0000 (11:05 +0100)
commitfb04f17617458d2d3d09e0bef29f1255d4d3500c
treeab1967cb83eb2ac0df9c4e81ea48ca0857e3b7aa
parente81231e9a88ebc68c715010ce288c1d59c52e88f
sd-bus: initialize mutex after we allocated the wqueue

That way the mutex doesn't have to be destroyed when we exit early due
to OOM.

(cherry picked from commit 2fe9a10d7695c4c3a748969a0d1662c624e50e5e)
Related: CVE-2020-1712
src/libsystemd/sd-bus/sd-bus.c