diff options
author | Marc-André Lureau <marc-andre.lureau@nokia.com> | 2009-02-18 19:26:21 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2009-02-19 04:57:11 +0100 |
commit | c0cf22d0812d766fb7528449be1351ca2e030a8c (patch) | |
tree | 025852a5cfdf887887e1607452c88989b462b804 /src | |
parent | 2c6abb87938d2172963a99979449c1ff0b63a9f3 (diff) |
protocol-esound: don't accept a request of PROTOCOL_MAX
Diffstat (limited to 'src')
-rw-r--r-- | src/pulsecore/protocol-esound.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pulsecore/protocol-esound.c b/src/pulsecore/protocol-esound.c index e1643cbb..840f4581 100644 --- a/src/pulsecore/protocol-esound.c +++ b/src/pulsecore/protocol-esound.c @@ -924,7 +924,7 @@ static int do_read(connection *c) { c->request = PA_MAYBE_INT32_SWAP(c->swap_byte_order, c->request); - if (c->request < ESD_PROTO_CONNECT || c->request > ESD_PROTO_MAX) { + if (c->request < ESD_PROTO_CONNECT || c->request >= ESD_PROTO_MAX) { pa_log("recieved invalid request."); return -1; } |