mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-mgw.git
synced 2025-10-23 08:12:01 +00:00
mgcp_client_init(): consider "talloc returns NULL" case
Change-Id: I131019b3c04a7860a118991c8f3bb31185fb11e4
This commit is contained in:
@@ -735,6 +735,8 @@ struct mgcp_client *mgcp_client_init(void *ctx,
|
||||
struct mgcp_client *mgcp;
|
||||
|
||||
mgcp = talloc_zero(ctx, struct mgcp_client);
|
||||
if (!mgcp)
|
||||
return NULL;
|
||||
|
||||
INIT_LLIST_HEAD(&mgcp->responses_pending);
|
||||
INIT_LLIST_HEAD(&mgcp->inuse_endpoints);
|
||||
|
Reference in New Issue
Block a user