diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-07-04 23:06:56 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-07-04 23:06:56 +0200 |
commit | a9c568beabc15e0599aa52383aca63839fe4940b (patch) | |
tree | d64a6e474f5f40fd6fb5ab09f0e801b2652a00fb /src | |
parent | device: print daddr not saddr in missing peer error (diff) | |
download | wireguard-monolithic-historical-a9c568beabc15e0599aa52383aca63839fe4940b.tar.xz wireguard-monolithic-historical-a9c568beabc15e0599aa52383aca63839fe4940b.zip |
receive: style
Diffstat (limited to 'src')
-rw-r--r-- | src/receive.c | 2 |
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 */ |