mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-mgw.git
synced 2025-10-23 08:12:01 +00:00
libosmo-mgcp-client: mgcp_client_tx(): return rc on error
Change-Id: Ic2080241ceb9e00109a5222b78c35b7971320c21
This commit is contained in:
@@ -1027,12 +1027,12 @@ int mgcp_client_tx(struct mgcp_client *mgcp, struct msgb *msg,
|
||||
|
||||
mgcp_tx_error:
|
||||
if (!pending)
|
||||
return -1;
|
||||
return rc;
|
||||
/* Dequeue pending response, it's going to be free()d */
|
||||
llist_del(&pending->entry);
|
||||
/* Pass NULL to response cb to indicate an error */
|
||||
mgcp_client_handle_response(mgcp, pending, NULL);
|
||||
return -1;
|
||||
return rc;
|
||||
}
|
||||
|
||||
/*! Cancel a pending transaction.
|
||||
|
Reference in New Issue
Block a user