aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xmanager.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/manager.c b/manager.c
index 32532c9d1..5350c710f 100755
--- a/manager.c
+++ b/manager.c
@@ -1357,7 +1357,7 @@ static void *session_do(void *data)
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 @@ static void *session_do(void *data)
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)