From a12e5aab1a5a61a1a06a459b6ee38830bafb7104 Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Wed, 14 Mar 2012 00:43:15 +0000 Subject: [PATCH] Fix incorrect sizeof() in astman. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@359116 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- utils/astman.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/astman.c b/utils/astman.c index 459eeee71b..88573e5f9f 100644 --- a/utils/astman.c +++ b/utils/astman.c @@ -387,7 +387,7 @@ static int input_check(struct ast_mansession *s, struct message **mout) } 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) {