[Asterisk-cvs] asterisk manager.c,1.115,1.116

kpfleming kpfleming
Fri Sep 30 12:30:49 CDT 2005


Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv21097

Modified Files:
	manager.c 
Log Message:
properly clear out manager header structure between actions


Index: manager.c
===================================================================
RCS file: /usr/cvsroot/asterisk/manager.c,v
retrieving revision 1.115
retrieving revision 1.116
diff -u -d -r1.115 -r1.116
--- manager.c	29 Sep 2005 20:37:01 -0000	1.115
+++ manager.c	30 Sep 2005 16:27:14 -0000	1.116
@@ -1357,7 +1357,7 @@
 	ast_mutex_lock(&s->__lock);
 	ast_cli(s->fd, "Asterisk Call Manager/1.0\r\n");
 	ast_mutex_unlock(&s->__lock);
-	memset(&m, 0, sizeof(&m));
+	memset(&m, 0, sizeof(m));
 	for (;;) {
 		res = get_input(s, m.headers[m.hdrcount]);
 		if (res > 0) {
@@ -1368,7 +1368,7 @@
 			if (ast_strlen_zero(m.headers[m.hdrcount])) {
 				if (process_message(s, &m))
 					break;
-				memset(&m, 0, sizeof(&m));
+				memset(&m, 0, sizeof(m));
 			} else if (m.hdrcount < MAX_HEADERS - 1)
 				m.hdrcount++;
 		} else if (res < 0)




More information about the svn-commits mailing list