summaryrefslogtreecommitdiffhomepage
path: root/src/send.c
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-10-08 22:54:32 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2018-10-09 01:57:47 +0200
commit1564e913bf02a924116497bdb8c1b994298c0465 (patch)
treebd28848929af527602fd0e8474cf50670221b9a0 /src/send.c
parent11d9063c3d2084a6eeb78aaaf5cadc9b8a2ff437 (diff)
global: give if statements brackets and other cleanups
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/send.c')
-rw-r--r--src/send.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/send.c b/src/send.c
index ca6fa3e..b7f8283 100644
--- a/src/send.c
+++ b/src/send.c
@@ -305,9 +305,9 @@ void wg_packet_encrypt_worker(struct work_struct *work)
skb_walk_null_queue_safe(first, skb, next) {
if (likely(encrypt_packet(skb,
PACKET_CB(first)->keypair,
- &simd_context)))
+ &simd_context))) {
wg_reset_packet(skb);
- else {
+ } else {
state = PACKET_STATE_DEAD;
break;
}