Skip to content

Commit

Permalink
only set ik_complete = true if IK succeeds
Browse files Browse the repository at this point in the history
  • Loading branch information
yusefnapora committed Dec 5, 2019
1 parent 423803f commit c3157aa
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions p2p/security/noise/protocol.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,10 +194,9 @@ func (s *secureSession) runHandshake(ctx context.Context) error {
}

s.xx_complete = true
} else {
s.ik_complete = true
}

s.ik_complete = true

} else {
// unknown static key for peer, try XX
err := s.runHandshake_xx(ctx, false, payloadEnc, nil)
Expand Down

0 comments on commit c3157aa

Please sign in to comment.