mirror of
https://github.com/bettercap/bettercap
synced 2025-07-30 11:40:33 -07:00
misc: small fix or general refactoring i did not bother commenting
This commit is contained in:
parent
8f84b9d72c
commit
0e2e7344f8
1 changed files with 6 additions and 0 deletions
|
@ -131,6 +131,7 @@ func Dot11InformationElementVendorInfoDecode(buf []byte) (v VendorInfo, err erro
|
|||
}
|
||||
}
|
||||
} else {
|
||||
v.Unicast.Count = 0
|
||||
return
|
||||
}
|
||||
|
||||
|
@ -152,6 +153,8 @@ func Dot11InformationElementVendorInfoDecode(buf []byte) (v VendorInfo, err erro
|
|||
return v, err
|
||||
}
|
||||
}
|
||||
} else {
|
||||
v.AuthKey.Count = 0
|
||||
}
|
||||
|
||||
return
|
||||
|
@ -180,6 +183,7 @@ func Dot11InformationElementRSNInfoDecode(buf []byte) (rsn RSNInfo, err error) {
|
|||
}
|
||||
}
|
||||
} else {
|
||||
rsn.Pairwise.Count = 0
|
||||
return
|
||||
}
|
||||
|
||||
|
@ -201,6 +205,8 @@ func Dot11InformationElementRSNInfoDecode(buf []byte) (rsn RSNInfo, err error) {
|
|||
return rsn, err
|
||||
}
|
||||
}
|
||||
} else {
|
||||
rsn.AuthKey.Count = 0
|
||||
}
|
||||
|
||||
return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue