diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-07-30 04:07:46 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-08-01 23:22:41 +0200 |
commit | 0d20487c9dd727b82d683f72ffbad89ac0c69114 (patch) | |
tree | 372627f437253d11aca49607a2011f31cef86b7f | |
parent | socket: move print function from compat (diff) | |
download | wireguard-monolithic-historical-0d20487c9dd727b82d683f72ffbad89ac0c69114.tar.xz wireguard-monolithic-historical-0d20487c9dd727b82d683f72ffbad89ac0c69114.zip |
receive: single line if style
-rw-r--r-- | src/receive.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/receive.c b/src/receive.c index 867703c..9085d71 100644 --- a/src/receive.c +++ b/src/receive.c @@ -222,9 +222,8 @@ void packet_consume_data_done(struct sk_buff *skb, struct wireguard_peer *peer, } else goto dishonest_packet_type; - if (unlikely(len > skb->len)) { + if (unlikely(len > skb->len)) goto dishonest_packet_size; - } if (len < skb->len && unlikely(pskb_trim(skb, len))) goto packet_processed; |