misc: small fix or general refactoring i did not bother commenting

This commit is contained in:
evilsocket 2018-03-11 15:38:37 +01:00
parent 8f84b9d72c
commit 0e2e7344f8
No known key found for this signature in database
GPG key ID: 1564D7F30393A456

View file

@ -131,6 +131,7 @@ func Dot11InformationElementVendorInfoDecode(buf []byte) (v VendorInfo, err erro
} }
} }
} else { } else {
v.Unicast.Count = 0
return return
} }
@ -152,6 +153,8 @@ func Dot11InformationElementVendorInfoDecode(buf []byte) (v VendorInfo, err erro
return v, err return v, err
} }
} }
} else {
v.AuthKey.Count = 0
} }
return return
@ -180,6 +183,7 @@ func Dot11InformationElementRSNInfoDecode(buf []byte) (rsn RSNInfo, err error) {
} }
} }
} else { } else {
rsn.Pairwise.Count = 0
return return
} }
@ -201,6 +205,8 @@ func Dot11InformationElementRSNInfoDecode(buf []byte) (rsn RSNInfo, err error) {
return rsn, err return rsn, err
} }
} }
} else {
rsn.AuthKey.Count = 0
} }
return return