summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-07-04 23:06:56 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2018-07-04 23:06:56 +0200
commit03086abb5da4fcdb0c60c831abb40565c4d23891 (patch)
tree1207683991b77ead89d3013295ceb5d4b21a5509
parent0f9770131249d628bc5e445fddaaf8c69b974017 (diff)
receive: style
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
-rw-r--r--src/receive.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/receive.c b/src/receive.c
index d150a0b..7dc3a61 100644
--- a/src/receive.c
+++ b/src/receive.c
@@ -57,7 +57,7 @@ static inline int skb_prepare_header(struct sk_buff *skb, struct wireguard_devic
udp = udp_hdr(skb);
data_offset = (u8 *)udp - skb->data;
if (unlikely(data_offset > U16_MAX || data_offset + sizeof(struct udphdr) > skb->len))
- return -EINVAL; /* Packet has offset at impossible location or isn't big enough to have UDP fields*/
+ return -EINVAL; /* Packet has offset at impossible location or isn't big enough to have UDP fields */
data_len = ntohs(udp->len);
if (unlikely(data_len < sizeof(struct udphdr) || data_len > skb->len - data_offset))
return -EINVAL; /* UDP packet is reporting too small of a size or lying about its size */