Skip to content
Snippets Groups Projects
Commit 1e412572 authored by Richard T. Carback III's avatar Richard T. Carback III
Browse files

fix bug on ownership proofs when users attempt to request auth channels at the same time

parent 44aeffe9
No related branches found
No related tags found
2 merge requests!170Release,!138fix bug on ownership proofs when users attempt to request auth channels at the same time
...@@ -227,6 +227,10 @@ func (m *Manager) handleRequest(cmixMsg format.Message, ...@@ -227,6 +227,10 @@ func (m *Manager) handleRequest(cmixMsg format.Message,
_, _, partnerContact, _ := m.storage.Auth().GetRequest(partnerID) _, _, partnerContact, _ := m.storage.Auth().GetRequest(partnerID)
m.storage.Auth().Delete(partnerID) m.storage.Auth().Delete(partnerID)
// Use the public key sent to me, not the one I
// first retrieved to initiate the auth request
partnerContact.DhPubKey = partnerPubKey
// add a confirmation to disk // add a confirmation to disk
if err = m.storage.Auth().AddReceived(partnerContact, if err = m.storage.Auth().AddReceived(partnerContact,
partnerSIDHPubKey); err != nil { partnerSIDHPubKey); err != nil {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment