summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
Diffstat (limited to 'main')
-rw-r--r--main/acl.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/main/acl.c b/main/acl.c
index f3795c95a..69713bbd8 100644
--- a/main/acl.c
+++ b/main/acl.c
@@ -408,6 +408,9 @@ struct ast_ha *ast_append_ha(const char *sense, const char *stuff, struct ast_ha
}
if (!(ha = ast_calloc(1, sizeof(*ha)))) {
+ if (error) {
+ *error = 1;
+ }
return ret;
}