mirror of
https://github.com/henrybear327/Proton-API-Bridge.git
synced 2026-04-30 19:22:38 -04:00
Fix mainshareKR bug
This commit is contained in:
@@ -10,7 +10,7 @@ import (
|
||||
func (protonDrive *ProtonDrive) getNodeKRByID(ctx context.Context, linkID string) (*crypto.KeyRing, error) {
|
||||
if linkID == "" {
|
||||
// most likely someone requested parent link, which happen to be ""
|
||||
return protonDrive.MainShareKR, nil
|
||||
return protonDrive.MainShareKR.Copy() // we need to return a deep copy since the keyring will be freed by the caller when it finishes using the keyring
|
||||
}
|
||||
|
||||
link, err := protonDrive.c.GetLink(ctx, protonDrive.MainShare.ShareID, linkID)
|
||||
|
||||
Reference in New Issue
Block a user