diff --git a/main/manager.c b/main/manager.c index 0b6cffee56925fc99bee021f72c890771f884fab..ee75967cb0cccb180f6fa5dbd69ff9bd79cc37f7 100644 --- a/main/manager.c +++ b/main/manager.c @@ -4695,6 +4695,7 @@ static int action_originate(struct mansession *s, const struct message *m) if (!cap) { astman_send_error(s, m, "Internal Error. Memory allocation failure."); + return 0; } ast_format_cap_add(cap, ast_format_set(&tmp_fmt, AST_FORMAT_SLINEAR, 0));