introspect: Add version check to pa_context_send_message_to_object()
authorTanu Kaskinen <tanuk@iki.fi>
Sat, 11 Jul 2020 10:58:36 +0000 (13:58 +0300)
committerTanu Kaskinen <tanuk@iki.fi>
Thu, 3 Dec 2020 14:41:39 +0000 (14:41 +0000)
commit5d022a07a635568f7964e24b326cebaf8d64b7da
tree4f69111b6629248607020e4d5b0bdcfbefc64389
parent6722b2d8c422493829c4c57ca5ec1919c7c74231
introspect: Add version check to pa_context_send_message_to_object()

If an application calls the function when the server doesn't support the
feature, the result should be just an error from the function. Without
the check the whole connection gets terminated due to protocol error.

Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/51>
src/pulse/introspect.c