mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-31 22:25:33 -04:00
check for packet size on server info data
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2537 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
1fe2f2c461
commit
71aca299c9
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue