summaryrefslogtreecommitdiffstats
path: root/src/pulse
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2008-06-16 18:59:20 +0000
committerLennart Poettering <lennart@poettering.net>2008-06-16 18:59:20 +0000
commit71aca299c9fa3cb1777f86a108ed9aa7a8a7f843 (patch)
treee284f2174f0eebfda2a8b42fa95235f645998571 /src/pulse
parent1fe2f2c461b63fbe0be6860cbecd60bf76369bc5 (diff)
check for packet size on server info data
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2537 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src/pulse')
-rw-r--r--src/pulse/introspect.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pulse/introspect.c b/src/pulse/introspect.c
index 857e82b4..86ac94ca 100644
--- a/src/pulse/introspect.c
+++ b/src/pulse/introspect.c
@@ -106,7 +106,8 @@ static void context_get_server_info_callback(pa_pdispatch *pd, uint32_t command,
pa_tagstruct_get_sample_spec(t, &i.sample_spec) < 0 ||
pa_tagstruct_gets(t, &i.default_sink_name) < 0 ||
pa_tagstruct_gets(t, &i.default_source_name) < 0 ||
- pa_tagstruct_getu32(t, &i.cookie) < 0) {
+ pa_tagstruct_getu32(t, &i.cookie) < 0 ||
+ !pa_tagstruct_eof(t)) {
pa_context_fail(o->context, PA_ERR_PROTOCOL);
goto finish;