]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
aco: Fix NULL dereference in error path.
authorCorey Farrell <git@cfware.com>
Thu, 4 Jan 2018 15:27:19 +0000 (10:27 -0500)
committerCorey Farrell <git@cfware.com>
Thu, 4 Jan 2018 15:33:07 +0000 (09:33 -0600)
Change-Id: Id505167cf0f9414a3c144fa2c1e181a2cf288694

main/config_options.c

index d837cd19f9147898fed6f569cee481e16e64e53d..3ac5590ec086bf35892feac26a8cf2cf3441518f 100644 (file)
@@ -616,7 +616,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())) {