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

Commit

Permalink
send: address of variable is never null
Browse files Browse the repository at this point in the history
Reported-by: Jann Horn <[email protected]>
  • Loading branch information
zx2c4 committed Jul 31, 2018
1 parent b713ab0 commit 4f9c782
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/send.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4f9c782

Please sign in to comment.