mirror of
https://gitlab.freedesktop.org/pipewire/pipewire
synced 2024-09-06 00:40:34 +00:00
pulse-server: client_queue_subscribe_event(): check message allocation
This commit is contained in:
parent
8e495a3a2c
commit
d467f6fdc6
|
@ -368,6 +368,9 @@ int client_queue_subscribe_event(struct client *client, uint32_t mask, uint32_t
|
|||
return 0;
|
||||
|
||||
struct message *reply = message_alloc(client->impl, -1, 0);
|
||||
if (!reply)
|
||||
return -errno;
|
||||
|
||||
reply->extra[0] = COMMAND_SUBSCRIBE_EVENT;
|
||||
reply->extra[1] = event;
|
||||
reply->extra[2] = index;
|
||||
|
|
Loading…
Reference in a new issue