summaryrefslogtreecommitdiff
path: root/main/security_events.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/security_events.c')
-rw-r--r--main/security_events.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/security_events.c b/main/security_events.c
index 51a8e0582..bdb9b21c8 100644
--- a/main/security_events.c
+++ b/main/security_events.c
@@ -491,7 +491,7 @@ static struct ast_event *alloc_event(const struct ast_security_event_common *sec
return ast_event_new(AST_EVENT_SECURITY,
AST_EVENT_IE_SECURITY_EVENT, AST_EVENT_IE_PLTYPE_UINT, sec->event_type,
AST_EVENT_IE_EVENT_VERSION, AST_EVENT_IE_PLTYPE_UINT, sec->version,
- AST_EVENT_IE_EVENT_TV, AST_EVENT_IE_PLTYPE_STR, str->str,
+ AST_EVENT_IE_EVENT_TV, AST_EVENT_IE_PLTYPE_STR, ast_str_buffer(str),
AST_EVENT_IE_SERVICE, AST_EVENT_IE_PLTYPE_STR, sec->service,
AST_EVENT_IE_SEVERITY, AST_EVENT_IE_PLTYPE_STR, severity_str,
AST_EVENT_IE_END);