aboutsummaryrefslogtreecommitdiffstats
path: root/wlantest/bip.c
diff options
context:
space:
mode:
Diffstat (limited to 'wlantest/bip.c')
-rw-r--r--wlantest/bip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wlantest/bip.c b/wlantest/bip.c
index bda8036..c73a15c 100644
--- a/wlantest/bip.c
+++ b/wlantest/bip.c
@@ -23,7 +23,7 @@ u8 * bip_protect(const u8 *igtk, size_t igtk_len, u8 *frame, size_t len,
struct ieee80211_hdr *hdr;
size_t plen;
- plen = len + igtk_len == 32 ? 26 : 18;
+ plen = len + (igtk_len == 32 ? 26 : 18);
prot = os_malloc(plen);
if (prot == NULL)
return NULL;