summaryrefslogtreecommitdiffhomepage
path: root/src/peer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/peer.c')
-rw-r--r--src/peer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/peer.c b/src/peer.c
index 4a4ec66..e4e2405 100644
--- a/src/peer.c
+++ b/src/peer.c
@@ -192,7 +192,7 @@ static void kref_release(struct kref *refcount)
/* Remove any lingering packets that didn't have a chance to be
* transmitted.
*/
- skb_queue_purge(&peer->staged_packet_queue);
+ wg_packet_purge_staged_packets(peer);
/* Free the memory used. */
call_rcu_bh(&peer->rcu, rcu_release);