Fix error handling in GetSessionFromKeyPacket*
This commit is contained in:
parent
00ac3e0e2d
commit
ffa2d06073
1 changed files with 2 additions and 2 deletions
|
|
@ -69,7 +69,7 @@ func (pm *PmCrypto) GetSessionFromKeyPacketBinkeys(keyPackage []byte, privateKey
|
||||||
}
|
}
|
||||||
|
|
||||||
if decryptErr != nil {
|
if decryptErr != nil {
|
||||||
return nil, err
|
return nil, decryptErr
|
||||||
}
|
}
|
||||||
|
|
||||||
return getSessionSplit(ek)
|
return getSessionSplit(ek)
|
||||||
|
|
@ -110,7 +110,7 @@ func (pm *PmCrypto) GetSessionFromKeyPacket(keyPackage []byte, privateKey string
|
||||||
}
|
}
|
||||||
|
|
||||||
if decryptErr != nil {
|
if decryptErr != nil {
|
||||||
return nil, err
|
return nil, decryptErr
|
||||||
}
|
}
|
||||||
|
|
||||||
return getSessionSplit(ek)
|
return getSessionSplit(ek)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue