aboutsummaryrefslogtreecommitdiffstats
path: root/src/if_wg.c
diff options
context:
space:
mode:
authorMatt Dunwoodie <ncon@noconroy.net>2021-04-20 10:29:59 +1000
committerMatt Dunwoodie <ncon@noconroy.net>2021-04-20 10:52:36 +1000
commit971f07f189c96680c19ef8e7192a7f5199b36d62 (patch)
treee340c0dba1cb891ef88c23e9c6a9bf73f6993a35 /src/if_wg.c
parentwg_noise: check keypair recvwith after nonce (diff)
downloadwireguard-freebsd-971f07f189c96680c19ef8e7192a7f5199b36d62.tar.xz
wireguard-freebsd-971f07f189c96680c19ef8e7192a7f5199b36d62.zip
if_wg: remove unused load
Signed-off-by: Matt Dunwoodie <ncon@noconroy.net>
Diffstat (limited to '')
-rw-r--r--src/if_wg.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/if_wg.c b/src/if_wg.c
index 7b74348..aab70bd 100644
--- a/src/if_wg.c
+++ b/src/if_wg.c
@@ -1463,7 +1463,6 @@ wg_decrypt(struct wg_softc *sc, struct wg_packet *pkt)
peer = noise_keypair_remote_arg(pkt->p_keypair);
m = pkt->p_mbuf;
- len = m->m_pkthdr.len;
/* Read index, nonce and then adjust to remove the header. */
memcpy(&data, mtod(m, void *), sizeof(struct wg_pkt_data));