diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2014-03-06 22:09:17 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2014-03-06 22:09:17 +0100 |
commit | 7cdd1c46c5bb29572c69cbf2dcff3fba6a4a7a1d (patch) | |
tree | 3eddd4d2feae3c4b0a337e39ee822c519cc34d8d | |
parent | 8e924edeeb15d6350e531e73cf519f2bd6ed5a74 (diff) | |
download | plan9front-7cdd1c46c5bb29572c69cbf2dcff3fba6a4a7a1d.tar.xz |
wifi: remove misleading packet header length check in wifidecrypt()
we do not need to check block length in wifidecrypt()
again as wifiiq() already filters out truncated frames.
-rw-r--r-- | sys/src/9/pc/wifi.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/sys/src/9/pc/wifi.c b/sys/src/9/pc/wifi.c index da2175fd7..2f4c63711 100644 --- a/sys/src/9/pc/wifi.c +++ b/sys/src/9/pc/wifi.c @@ -997,9 +997,6 @@ wifidecrypt(Wifi *, Wnode *wn, Block *b) Wkey *k; w = (Wifipkt*)b->rp; - if(BLEN(b) < WIFIHDRSIZE) - goto drop; - n = wifihdrlen(w); b->rp += n; if(BLEN(b) < 8+8) |