add a session error check
This commit is contained in:
parent
701f1bc60a
commit
edf3da1573
1 changed files with 4 additions and 0 deletions
|
|
@ -261,6 +261,10 @@ func getSessionSplit(ek *packet.EncryptedKey) (*SessionSplit, error) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ek.Key == nil {
|
||||||
|
return nil, errors.New("can't decrypt key packet key is nil")
|
||||||
|
}
|
||||||
|
|
||||||
return &SessionSplit{
|
return &SessionSplit{
|
||||||
Session: ek.Key,
|
Session: ek.Key,
|
||||||
Algo: algo,
|
Algo: algo,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue