[Asterisk-code-review] aco: Fix NULL dereference in error path. (asterisk[master])

Corey Farrell asteriskteam at digium.com
Thu Jan 4 09:27:33 CST 2018


Corey Farrell has uploaded this change for review. ( https://gerrit.asterisk.org/7796


Change subject: aco: Fix NULL dereference in error path.
......................................................................

aco: Fix NULL dereference in error path.

Change-Id: Id505167cf0f9414a3c144fa2c1e181a2cf288694
---
M main/config_options.c
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/96/7796/1

diff --git a/main/config_options.c b/main/config_options.c
index a3ec7b0..3aa00f9 100644
--- a/main/config_options.c
+++ b/main/config_options.c
@@ -614,7 +614,7 @@
 {
 	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())) {

-- 
To view, visit https://gerrit.asterisk.org/7796
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Id505167cf0f9414a3c144fa2c1e181a2cf288694
Gerrit-Change-Number: 7796
Gerrit-PatchSet: 1
Gerrit-Owner: Corey Farrell <git at cfware.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20180104/2da0e30a/attachment.html>


More information about the asterisk-code-review mailing list