mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 11:58:52 +00:00
res_speech_aeap: check for null format on response
* Fixed issue in res_speech_aeap when unable to provide an input format to check against.
This commit is contained in:
committed by
asterisk-org-access-app[bot]
parent
55ec8f8dad
commit
62541787f2
@@ -279,6 +279,11 @@ static int handle_response_setup(struct ast_aeap *aeap, struct ast_aeap_message
|
|||||||
struct ast_json *json = ast_aeap_message_data(message);
|
struct ast_json *json = ast_aeap_message_data(message);
|
||||||
const char *codec_name;
|
const char *codec_name;
|
||||||
|
|
||||||
|
if (!format) {
|
||||||
|
log_error(aeap, "no 'format' set");
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
if (!json) {
|
if (!json) {
|
||||||
log_error(aeap, "no 'setup' object returned");
|
log_error(aeap, "no 'setup' object returned");
|
||||||
return -1;
|
return -1;
|
||||||
|
Reference in New Issue
Block a user