pulse-server: client_queue_subscribe_event(): check message allocation

This commit is contained in:
Barnabás Pőcze 2024-05-15 00:27:57 +02:00 committed by Wim Taymans
parent 412b379138
commit 861578c4d5

View file

@ -354,6 +354,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;