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:
parent
212d562cf9
commit
aee83c9da8
@ -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 *
|
||||
|
Loading…
Reference in New Issue
Block a user