mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-14 10:09:48 +00:00
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
a5e3a5a56f
commit
9972acaa15
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=233128
@ -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