[pulseaudio-commits] [SCM] PulseAudio Sound Server branch, master, updated. v0.9.15-test3-38-gd09287d
Lennart Poettering
gitmailer-noreply at 0pointer.de
Tue Mar 3 19:01:52 PST 2009
This is an automated email from the git hooks/post-receive script. It was
generated because of a push to the "PulseAudio Sound Server" repository.
The master branch has been updated
from 869341729f088f3ec19c39aae5565cfae7f7ea33 (commit)
- Log -----------------------------------------------------------------
d09287d... Fix a NULL pointer access when sutting down esound/simple connections
-----------------------------------------------------------------------
Summary of changes:
src/pulsecore/protocol-esound.c | 3 +++
src/pulsecore/protocol-simple.c | 3 +++
2 files changed, 6 insertions(+), 0 deletions(-)
-----------------------------------------------------------------------
commit d09287d211164a93bcbb66839998fc64bad746ce
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Mar 4 04:00:00 2009 +0100
Fix a NULL pointer access when sutting down esound/simple connections
If a connection is unlinked make sure the process_msg function doesn't
crash when a message is received afterwards.
Closes #463.
diff --git a/src/pulsecore/protocol-esound.c b/src/pulsecore/protocol-esound.c
index cac4e36..2b80c65 100644
--- a/src/pulsecore/protocol-esound.c
+++ b/src/pulsecore/protocol-esound.c
@@ -1290,6 +1290,9 @@ static int connection_process_msg(pa_msgobject *o, int code, void*userdata, int6
connection *c = CONNECTION(o);
connection_assert_ref(c);
+ if (!c->protocol)
+ return -1;
+
switch (code) {
case CONNECTION_MESSAGE_REQUEST_DATA:
do_work(c);
diff --git a/src/pulsecore/protocol-simple.c b/src/pulsecore/protocol-simple.c
index b43245a..44fe597 100644
--- a/src/pulsecore/protocol-simple.c
+++ b/src/pulsecore/protocol-simple.c
@@ -283,6 +283,9 @@ static int connection_process_msg(pa_msgobject *o, int code, void*userdata, int6
connection *c = CONNECTION(o);
connection_assert_ref(c);
+ if (!c->protocol)
+ return -1;
+
switch (code) {
case CONNECTION_MESSAGE_REQUEST_DATA:
do_work(c);
--
hooks/post-receive
PulseAudio Sound Server
More information about the pulseaudio-commits
mailing list