diff options
author | ngie <ngie@FreeBSD.org> | 2016-04-22 08:11:26 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2016-04-22 08:11:26 +0000 |
commit | 1f176af7b394740bac04dec96b22481c88bd00ed (patch) | |
tree | c7fb399f83f66938294457b4f34ae0c914d035c7 /contrib/bsnmp | |
parent | 35bd8367fe545089ff8bb87e2eff7fac161231c3 (diff) | |
download | FreeBSD-src-1f176af7b394740bac04dec96b22481c88bd00ed.zip FreeBSD-src-1f176af7b394740bac04dec96b22481c88bd00ed.tar.gz |
Use `sizeof(*uuser)` instead of `sizeof(struct usm_user)` for consistency with
the rest of the users in the file
No functional change
MFC after: 3 days
Sponsored by: EMC / Isilon Storage Division
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 cbd1893..2d60926 100644 --- a/contrib/bsnmp/snmpd/main.c +++ b/contrib/bsnmp/snmpd/main.c @@ -2813,7 +2813,7 @@ usm_new_user(uint8_t *eid, uint32_t elen, char *uname) if ((uuser = (struct usm_user *)malloc(sizeof(*uuser))) == NULL) return (NULL); - memset(uuser, 0, sizeof(struct usm_user)); + memset(uuser, 0, sizeof(*uuser)); strlcpy(uuser->suser.sec_name, uname, SNMP_ADM_STR32_SIZ); memcpy(uuser->user_engine_id, eid, elen); uuser->user_engine_len = elen; |