mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-04-15 08:21:11 -04:00
pulse-server: client_queue_subscribe_event(): check message allocation
This commit is contained in:
parent
412b379138
commit
861578c4d5
1 changed files with 3 additions and 0 deletions
|
|
@ -354,6 +354,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