]> 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:00 +0000 (09:33 -0600)
Change-Id: Id505167cf0f9414a3c144fa2c1e181a2cf288694

main/config_options.c

index a3ec7b0521b9e3a46b4381c8b125c00ed7a54555..3aa00f921a52186ed921f811434f060564d1db81 100644 (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())) {