diff options
author | harti <harti@FreeBSD.org> | 2012-03-18 19:28:52 +0000 |
---|---|---|
committer | harti <harti@FreeBSD.org> | 2012-03-18 19:28:52 +0000 |
commit | aee83c9da86f11a7957cfd3a042505191364aaa0 (patch) | |
tree | d6bdd2f13b3c94bd85bfaf91202160316a292b9b /contrib/bsnmp | |
parent | 212d562cf99b18063b2bcae8fa7c5d1fd2332752 (diff) | |
download | FreeBSD-src-aee83c9da86f11a7957cfd3a042505191364aaa0.zip FreeBSD-src-aee83c9da86f11a7957cfd3a042505191364aaa0.tar.gz |
memset() wants the size of the structure to clear, not the size
of the pointer to it.
Submitted by: Pawel Worach
Diffstat (limited to 'contrib/bsnmp')
-rw-r--r-- | contrib/bsnmp/snmpd/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/bsnmp/snmpd/main.c b/contrib/bsnmp/snmpd/main.c index d8033c7..8331a83 100644 --- a/contrib/bsnmp/snmpd/main.c +++ b/contrib/bsnmp/snmpd/main.c @@ -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 * |