summaryrefslogtreecommitdiffhomepage
path: root/src/send.c
diff options
context:
space:
mode:
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 90dab85..823b344 100644
--- a/src/send.c
+++ b/src/send.c
@@ -303,7 +303,7 @@ void packet_send_staged_packets(struct wireguard_peer *peer)
if (unlikely(!keypair))
goto out_nokey;
key = &keypair->sending;
- if (unlikely(!key || !key->is_valid))
+ if (unlikely(!key->is_valid))
goto out_nokey;
if (unlikely(has_expired(key->birthdate, REJECT_AFTER_TIME)))
goto out_invalid;