From: Russell Bryant Date: Wed, 14 Mar 2012 00:44:04 +0000 (+0000) Subject: Fix incorrect sizeof() in astman. X-Git-Tag: 10.3.0~43 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8b513332a6aff403c38862be25ff304ac40b080b;p=thirdparty%2Fasterisk.git Fix incorrect sizeof() in astman. ........ Merged revisions 359116 from http://svn.asterisk.org/svn/asterisk/branches/1.8 git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/10@359117 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) {