aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--src/receive.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/receive.c b/src/receive.c
index 2994c02..11fc700 100644
--- a/src/receive.c
+++ b/src/receive.c
@@ -275,7 +275,7 @@ void packet_receive(struct wireguard_device *wg, struct sk_buff *skb)
static const u8 addr;
#endif
- if (unlikely(skb_data_offset(skb, &offset, &len) < 0 || !len))
+ if (unlikely(skb_data_offset(skb, &offset, &len) < 0))
goto err;
switch (message_determine_type(skb->data + offset, len)) {
case MESSAGE_HANDSHAKE_INITIATION: