diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-10-03 22:58:46 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-10-03 22:58:46 +0200 |
commit | b494d40832a76c590846469c50f31aad5c88b711 (patch) | |
tree | 7a656a918f0211b6f3586325a9ed9d38b2a75319 /src/receive.c | |
parent | Makefile: add non-verbose mode to tools (diff) | |
download | wireguard-monolithic-historical-b494d40832a76c590846469c50f31aad5c88b711.tar.xz wireguard-monolithic-historical-b494d40832a76c590846469c50f31aad5c88b711.zip |
receive: use local keypair, not ctx keypair in error path
Diffstat (limited to 'src/receive.c')
-rw-r--r-- | src/receive.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/receive.c b/src/receive.c index aab8b32..507022a 100644 --- a/src/receive.c +++ b/src/receive.c @@ -410,7 +410,7 @@ static void packet_consume_data(struct wireguard_device *wg, struct sk_buff *skb ctx = kmem_cache_alloc(crypt_ctx_cache, GFP_ATOMIC); if (unlikely(!ctx)) { dev_kfree_skb(skb); - peer_put(ctx->keypair->entry.peer); + peer_put(keypair->entry.peer); noise_keypair_put(keypair); return; } |