mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
core: Add missing return on protocol error
CID 1323582 when a protocol error occors, better bail out :)
This commit is contained in:
parent
cadbb2b315
commit
d36baaf81e
1 changed files with 3 additions and 1 deletions
|
|
@ -2639,8 +2639,10 @@ static void setup_srbchannel(pa_native_connection *c) {
|
|||
static void command_enable_srbchannel(pa_pdispatch *pd, uint32_t command, uint32_t tag, pa_tagstruct *t, void *userdata) {
|
||||
pa_native_connection *c = PA_NATIVE_CONNECTION(userdata);
|
||||
|
||||
if (tag != (uint32_t) (size_t) c->srbpending)
|
||||
if (tag != (uint32_t) (size_t) c->srbpending) {
|
||||
protocol_error(c);
|
||||
return;
|
||||
}
|
||||
|
||||
pa_log_debug("Client enabled srbchannel.");
|
||||
pa_pstream_set_srbchannel(c->pstream, c->srbpending);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue