Skip to content

Commit

Permalink
chapel: Remove the peer_id != 0 check.
Browse files Browse the repository at this point in the history
If we currently didn't know the peer_id (its 0) we should also
immediately respond if we get a valid offer.
  • Loading branch information
jorisvink committed Nov 30, 2024
1 parent 14457b5 commit 7592f2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/chapel.c
Original file line number Diff line number Diff line change
Expand Up @@ -840,7 +840,7 @@ chapel_offer_decrypt(struct sanctum_packet *pkt, u_int64_t now)
* If the peer ID differs, the remote restarted and we should
* offer keys immediately in response to this.
*/
if (peer_id != 0 && key->id != peer_id) {
if (key->id != peer_id) {
if (offer == NULL)
chapel_offer_create(now, "peer restart");
}
Expand Down

0 comments on commit 7592f2d

Please sign in to comment.