원본 프로젝트 : cwtch.im/cwtch
1
0
포크 0

Fixing potential timing conflict

This commit is contained in:
Sarah Jamie Lewis 2018-07-28 09:05:38 -07:00
부모 96b6cf6bb8
커밋 8b64ba19fd
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제

파일 보기

@ -64,10 +64,9 @@ func (cpsc *CwtchPeerSendChannel) OpenOutbound(channel *channels.Channel) ([]byt
func (cpsc *CwtchPeerSendChannel) OpenOutboundResult(err error, crm *Protocol_Data_Control.ChannelResult) {
if err == nil {
if crm.GetOpened() {
cpsc.channel.Pending = false
ce, _ := proto.GetExtension(crm, protocol.E_ServerNonce)
cpsc.challenge = ce.([]byte)[:]
cpsc.channel.Pending = false
}
}
}