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

Jenkins2 asteriskteam at digium.com
Thu Jan 4 14:08:30 CST 2018


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

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 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: merged
Gerrit-Change-Id: Id505167cf0f9414a3c144fa2c1e181a2cf288694
Gerrit-Change-Number: 7799
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/a1037049/attachment.html>


More information about the asterisk-code-review mailing list