aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/send.c
diff options
context:
space:
mode:
authorThomas Gschwantner <tharre3@gmail.com>2018-06-01 03:49:50 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2018-06-04 20:30:02 +0200
commit042ff7a40ea7b603366a640ffd070204a0c778a4 (patch)
treeedf6637757ff7f842e0396714b0ebdbed1833371 /src/send.c
parentWIP7 (diff)
downloadwireguard-monolithic-historical-042ff7a40ea7b603366a640ffd070204a0c778a4.tar.xz
wireguard-monolithic-historical-042ff7a40ea7b603366a640ffd070204a0c778a4.zip
WIP8
Diffstat (limited to 'src/send.c')
-rw-r--r--src/send.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/send.c b/src/send.c
index b4aff0e..79c5bbe 100644
--- a/src/send.c
+++ b/src/send.c
@@ -244,7 +244,7 @@ void packet_encrypt_worker(struct work_struct *work)
struct sk_buff *first, *skb, *next;
bool have_simd = chacha20poly1305_init_simd();
- while (ck_ring_dequeue_mpmc(&queue->ring, &first)) {
+ while ((first = ck_ring_dequeue_mpmc(&queue->ring)) != NULL) {
enum packet_state state = PACKET_STATE_CRYPTED;
skb_walk_null_queue_safe(first, skb, next) {