mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-03 09:01:54 -05:00
pulse-server: client_queue_subscribe_event(): check message allocation
This commit is contained in:
parent
8e495a3a2c
commit
d467f6fdc6
1 changed files with 3 additions and 0 deletions
|
|
@ -368,6 +368,9 @@ int client_queue_subscribe_event(struct client *client, uint32_t mask, uint32_t
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
struct message *reply = message_alloc(client->impl, -1, 0);
|
struct message *reply = message_alloc(client->impl, -1, 0);
|
||||||
|
if (!reply)
|
||||||
|
return -errno;
|
||||||
|
|
||||||
reply->extra[0] = COMMAND_SUBSCRIBE_EVENT;
|
reply->extra[0] = COMMAND_SUBSCRIBE_EVENT;
|
||||||
reply->extra[1] = event;
|
reply->extra[1] = event;
|
||||||
reply->extra[2] = index;
|
reply->extra[2] = index;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue