mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-08 08:51:50 +00:00
CID: 1294548 adding a check for the return value
This commit is contained in:
parent
99f61f7ab8
commit
5e35f27cb1
@ -3238,7 +3238,9 @@ static switch_bool_t verto__invite_func(const char *method, cJSON *params, jsock
|
|||||||
|
|
||||||
*response = obj;
|
*response = obj;
|
||||||
|
|
||||||
switch_event_create_plain(&var_event, SWITCH_EVENT_CHANNEL_DATA);
|
if (switch_event_create_plain(&var_event, SWITCH_EVENT_CHANNEL_DATA) != SWITCH_STATUS_SUCCESS) {
|
||||||
|
err=1; goto cleanup;
|
||||||
|
}
|
||||||
|
|
||||||
if (!(dialog = cJSON_GetObjectItem(params, "dialogParams"))) {
|
if (!(dialog = cJSON_GetObjectItem(params, "dialogParams"))) {
|
||||||
cJSON_AddItemToObject(obj, "message", cJSON_CreateString("Dialog data missing"));
|
cJSON_AddItemToObject(obj, "message", cJSON_CreateString("Dialog data missing"));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user