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

Jenkins2 asteriskteam at digium.com
Thu Jan 4 14:00:43 CST 2018


Jenkins2 has submitted this change and it was merged. ( 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(-)

Approvals:
  Kevin Harwell: Looks good to me, but someone else must approve
  Joshua Colp: Looks good to me, approved
  Jenkins2: Approved for Submit



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: merged
Gerrit-Change-Id: Id505167cf0f9414a3c144fa2c1e181a2cf288694
Gerrit-Change-Number: 7796
Gerrit-PatchSet: 1
Gerrit-Owner: Corey Farrell <git at cfware.com>
Gerrit-Reviewer: Jenkins2
Gerrit-Reviewer: Joshua Colp <jcolp at digium.com>
Gerrit-Reviewer: Kevin Harwell <kharwell at digium.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20180104/87ee753a/attachment.html>


More information about the asterisk-code-review mailing list