ответвлено от cwtch.im/cwtch
1
0
Форкнуть 0

Fixing potential timing conflict

Этот коммит содержится в:
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
}
}
}