aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
Diffstat (limited to 'main')
-rw-r--r--main/manager.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/main/manager.c b/main/manager.c
index 4a66c4b2b..9e83328cd 100644
--- a/main/manager.c
+++ b/main/manager.c
@@ -2656,6 +2656,9 @@ static int action_userevent(struct mansession *s, const struct message *m)
const char *event = astman_get_header(m, "UserEvent");
struct ast_str *body = ast_str_thread_get(&userevent_buf, 16);
int x;
+
+ ast_str_reset(body);
+
for (x = 0; x < m->hdrcount; x++) {
if (strncasecmp("UserEvent:", m->headers[x], strlen("UserEvent:"))) {
ast_str_append(&body, 0, "%s\r\n", m->headers[x]);