diff options
author | Peter Meerwald <p.meerwald@bct-electronic.com> | 2015-09-14 17:50:36 +0200 |
---|---|---|
committer | Peter Meerwald <pmeerw@pmeerw.net> | 2015-09-16 08:05:52 +0200 |
commit | d36baaf81ef3512ab01a7d9cb6042e277663229f (patch) | |
tree | d9deb69ce56fd3cd7ad3c26d6394195f08c3a18d /src/pulsecore/protocol-native.c | |
parent | cadbb2b3150e51356d4ae3edf6d07108d9e0dfbd (diff) |
core: Add missing return on protocol error
CID 1323582
when a protocol error occors, better bail out :)
Diffstat (limited to 'src/pulsecore/protocol-native.c')
-rw-r--r-- | src/pulsecore/protocol-native.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/pulsecore/protocol-native.c b/src/pulsecore/protocol-native.c index ec223bea3..145db0420 100644 --- a/src/pulsecore/protocol-native.c +++ b/src/pulsecore/protocol-native.c @@ -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); |