From 0e2e7344f803323bbdae677d161981cb46446fd0 Mon Sep 17 00:00:00 2001 From: evilsocket Date: Sun, 11 Mar 2018 15:38:37 +0100 Subject: [PATCH] misc: small fix or general refactoring i did not bother commenting --- packets/dot11_types.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packets/dot11_types.go b/packets/dot11_types.go index b0f7c3c7..bd85d2e1 100644 --- a/packets/dot11_types.go +++ b/packets/dot11_types.go @@ -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