]> code.delx.au - pulseaudio/commit
zeroconf-publish: Don't assume any particular defer event ordering
authorTanu Kaskinen <tanu.kaskinen@linux.intel.com>
Wed, 19 Mar 2014 07:50:39 +0000 (09:50 +0200)
committerTanu Kaskinen <tanu.kaskinen@linux.intel.com>
Fri, 28 Mar 2014 13:08:24 +0000 (15:08 +0200)
commitb75a20db10c8605d98324a7782a7da6483ae9f14
tree27ef98916879d38fd2f9dfa742882c7b3c05218f
parent1116daa5ebe75073b6701e50ad80ac894d6e05f3
zeroconf-publish: Don't assume any particular defer event ordering

Also, initialize userdata with zeros to avoid invalid pointers in
client_free().

This fixes a crash when client_free() is called before
create_client(). The whole issue could be avoided by using some other
mechanism than defer events for running the two functions, but I'll
do that change later (I have also other cleanups planned for
zeroconf-publish).

BugLink: https://bugs.freedesktop.org/show_bug.cgi?id=76184
src/modules/module-zeroconf-publish.c