[svn-commits] file: trunk r180800 - /trunk/main/manager.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Tue Mar 10 09:40:42 CDT 2009


Author: file
Date: Tue Mar 10 09:40:38 2009
New Revision: 180800

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=180800
Log:
Reset the thread local string buffer when handling the UserEvent action.

(closes issue #14593)
Reported by: JimDickenson

Modified:
    trunk/main/manager.c

Modified: trunk/main/manager.c
URL: http://svn.digium.com/svn-view/asterisk/trunk/main/manager.c?view=diff&rev=180800&r1=180799&r2=180800
==============================================================================
--- trunk/main/manager.c (original)
+++ trunk/main/manager.c Tue Mar 10 09:40:38 2009
@@ -2662,6 +2662,9 @@
 	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]);




More information about the svn-commits mailing list