memset() wants the size of the structure to clear, not the size

of the pointer to it.

Submitted by:	Pawel Worach
This commit is contained in:
harti 2012-03-18 19:28:52 +00:00
parent 212d562cf9
commit aee83c9da8

View File

@ -2703,7 +2703,7 @@ bsnmpd_get_usm_stats(void)
void
bsnmpd_reset_usm_stats(void)
{
memset(&snmpd_usmstats, 0, sizeof(&snmpd_usmstats));
memset(&snmpd_usmstats, 0, sizeof(snmpd_usmstats));
}
struct usm_user *