aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2017-06-01 06:52:27 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2017-06-01 06:52:27 +0200
commitff3233dcd28bdcdd120f2ea44a95b6ad6e034104 (patch)
tree8b85b72c542076dcace6b95295d67310fc098c0e /src
parentreceive: trim incoming packets to IP header length (diff)
downloadwireguard-monolithic-historical-ff3233dcd28bdcdd120f2ea44a95b6ad6e034104.tar.xz
wireguard-monolithic-historical-ff3233dcd28bdcdd120f2ea44a95b6ad6e034104.zip
device: do-while assignment style
Diffstat (limited to 'src')
-rw-r--r--src/device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/device.c b/src/device.c
index 802e90d..6dfefc0 100644
--- a/src/device.c
+++ b/src/device.c
@@ -186,7 +186,7 @@ static netdev_tx_t xmit(struct sk_buff *skb, struct net_device *dev)
skb_dst_drop(skb);
skb_queue_tail(&peer->tx_packet_queue, skb);
- } while ((skb = next));
+ } while ((skb = next) != NULL);
packet_send_queue(peer);
peer_put(peer);