aco: Fix NULL dereference in error path.

Change-Id: Id505167cf0f9414a3c144fa2c1e181a2cf288694
This commit is contained in:
Corey Farrell
2018-01-04 10:27:19 -05:00
parent 2fac32a37a
commit aaed0b8b3a

View File

@@ -614,7 +614,7 @@ enum aco_process_status aco_process_ast_config(struct aco_info *info, struct aco
{
if (!info->internal) {
ast_log(LOG_ERROR, "Attempt to process %s with uninitialized aco_info\n", file->filename);
goto error;
return ACO_PROCESS_ERROR;
}
if (!(info->internal->pending = info->snapshot_alloc())) {