diff options
author | Marc-André Lureau <marc-andre.lureau@nokia.com> | 2009-02-17 22:32:40 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2009-02-19 04:55:20 +0100 |
commit | d1306e3020137251fc0aa57386dd79ee1ec5ebb0 (patch) | |
tree | f61d38fae6569da1c2437ae81b3c637280c8a34a /src/pulsecore/protocol-native.c | |
parent | 67b0baecc41745afcf8591949fbdffb8678fe83f (diff) |
pulsecore: fix check for cb (m is already checked before)
Diffstat (limited to 'src/pulsecore/protocol-native.c')
-rw-r--r-- | src/pulsecore/protocol-native.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pulsecore/protocol-native.c b/src/pulsecore/protocol-native.c index 39b82826..59fae984 100644 --- a/src/pulsecore/protocol-native.c +++ b/src/pulsecore/protocol-native.c @@ -4070,7 +4070,7 @@ static void command_extension(pa_pdispatch *pd, uint32_t command, uint32_t tag, CHECK_VALIDITY(c->pstream, m->load_once || idx != PA_INVALID_INDEX, tag, PA_ERR_INVALID); cb = (pa_native_protocol_ext_cb_t) (unsigned long) pa_hashmap_get(c->protocol->extensions, m); - CHECK_VALIDITY(c->pstream, m, tag, PA_ERR_NOEXTENSION); + CHECK_VALIDITY(c->pstream, cb, tag, PA_ERR_NOEXTENSION); if (cb(c->protocol, m, c, tag, t) < 0) protocol_error(c); |