mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-mgw.git
synced 2025-11-02 21:13:44 +00:00
libosmo-mgcp-client: fix use-after-free in mgcp_msg_gen()
Change-Id: Ib8b6c25489a6a704912aa1763d7430c8055d54e3
This commit is contained in:
@@ -1208,6 +1208,7 @@ struct msgb *mgcp_msg_gen(struct mgcp_client *mgcp, struct mgcp_msg *mgcp_msg)
|
|||||||
"Endpoint name (%s) lacks separator (@), can not generate MGCP message\n",
|
"Endpoint name (%s) lacks separator (@), can not generate MGCP message\n",
|
||||||
mgcp_msg->endpoint);
|
mgcp_msg->endpoint);
|
||||||
msgb_free(msg);
|
msgb_free(msg);
|
||||||
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
rc += msgb_printf(msg, " %s", mgcp_msg->endpoint);
|
rc += msgb_printf(msg, " %s", mgcp_msg->endpoint);
|
||||||
|
|||||||
Reference in New Issue
Block a user