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

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


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


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/99/7799/1

diff --git a/main/config_options.c b/main/config_options.c
index d837cd1..3ac5590 100644
--- a/main/config_options.c
+++ b/main/config_options.c
@@ -616,7 +616,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/7799
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-MessageType: newchange
Gerrit-Change-Id: Id505167cf0f9414a3c144fa2c1e181a2cf288694
Gerrit-Change-Number: 7799
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/7688f977/attachment.html>


More information about the asterisk-code-review mailing list