Skip to content
Snippets Groups Projects
Commit c717b521 authored by Benjamin Wenger's avatar Benjamin Wenger
Browse files

fixed a potential segfault

parent fc585311
No related branches found
No related tags found
No related merge requests found
...@@ -112,12 +112,11 @@ func (m *Manager) handleMessage(ecrMsg format.Message, identity reception.Identi ...@@ -112,12 +112,11 @@ func (m *Manager) handleMessage(ecrMsg format.Message, identity reception.Identi
xxMsg, ok := m.partitioner.HandlePartition(sender, encTy, msg.GetContents(), xxMsg, ok := m.partitioner.HandlePartition(sender, encTy, msg.GetContents(),
relationshipFingerprint) relationshipFingerprint)
// If the reception completed a message, hear it on the switchboard
if ok {
//Set the identities //Set the identities
xxMsg.RecipientID = identity.Source xxMsg.RecipientID = identity.Source
xxMsg.EphemeralID = identity.EphId xxMsg.EphemeralID = identity.EphId
// If the reception completed a message, hear it on the switchboard
if ok {
xxMsg.Encryption = encTy xxMsg.Encryption = encTy
if xxMsg.MessageType == message.Raw { if xxMsg.MessageType == message.Raw {
jww.WARN.Panicf("Recieved a message of type 'Raw' from %s."+ jww.WARN.Panicf("Recieved a message of type 'Raw' from %s."+
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment