mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-02 10:22:46 +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.
(cherry picked from commit 3759d034cc
)
This commit is contained in:
committed by
Asterisk Development Team
parent
e4edc9c75d
commit
2fb8dbc679
@@ -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