pstream: Fix use-after-free in srb_callback
authorDavid Henningsson <david.henningsson@canonical.com>
Fri, 16 Oct 2015 20:12:32 +0000 (22:12 +0200)
committerDavid Henningsson <david.henningsson@canonical.com>
Tue, 20 Oct 2015 14:53:32 +0000 (16:53 +0200)
commitf277f2c5094fb32c5d879923960eb807b3b1c535
treebde5473de695c2e7efb7473c00ec8e08ecea414e
parent91313e60a81e96ce976f24c522656c57b4ab94ca
pstream: Fix use-after-free in srb_callback

We need to guard the pstream with an extra ref to ensure
it is not destroyed at the time we check whether or not the
srbchannel is destroyed.

Reported-by: Takashi Iwai <tiwai@suse.de>
BugLink: http://bugzilla.opensuse.org/show_bug.cgi?id=950487
Signed-off-by: David Henningsson <david.henningsson@canonical.com>
src/pulsecore/pstream.c