Skip to content
This repository was archived by the owner on Dec 27, 2019. It is now read-only.

Commit 4f9c782

Browse files
committed
send: address of variable is never null
Reported-by: Jann Horn <[email protected]>
1 parent b713ab0 commit 4f9c782

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/send.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ void packet_send_staged_packets(struct wireguard_peer *peer)
303303
if (unlikely(!keypair))
304304
goto out_nokey;
305305
key = &keypair->sending;
306-
if (unlikely(!key || !key->is_valid))
306+
if (unlikely(!key->is_valid))
307307
goto out_nokey;
308308
if (unlikely(has_expired(key->birthdate, REJECT_AFTER_TIME)))
309309
goto out_invalid;

0 commit comments

Comments
 (0)