Fix an incorrect sizeof()
Spotted by: clang Submitted by: dim
This commit is contained in:
parent
ca83b97532
commit
8c67042b72
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=246861
@ -2625,7 +2625,7 @@ mesh_parse_meshgate_action(struct ieee80211_node *ni,
|
||||
switch (*frm) {
|
||||
case IEEE80211_ELEMID_MESHGANN:
|
||||
gannie = (const struct ieee80211_meshgann_ie *) frm;
|
||||
memset(ie, 0, sizeof(ie));
|
||||
memset(ie, 0, sizeof(*ie));
|
||||
ie->gann_ie = gannie->gann_ie;
|
||||
ie->gann_len = gannie->gann_len;
|
||||
ie->gann_flags = gannie->gann_flags;
|
||||
|
Loading…
Reference in New Issue
Block a user