mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-02 03:48:02 +00:00
Merged revisions 180800 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ........ r180800 | file | 2009-03-10 11:40:38 -0300 (Tue, 10 Mar 2009) | 5 lines Reset the thread local string buffer when handling the UserEvent action. (closes issue #14593) Reported by: JimDickenson ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@180802 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user