From: Russell Bryant Date: Wed, 14 Mar 2012 00:43:15 +0000 (+0000) Subject: Fix incorrect sizeof() in astman. X-Git-Tag: 1.8.10.1~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a12e5aab1a5a61a1a06a459b6ee38830bafb7104;p=thirdparty%2Fasterisk.git Fix incorrect sizeof() in astman. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@359116 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- 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) {