Skip to content

Commit

Permalink
Merge branch 'master' into security-md
Browse files Browse the repository at this point in the history
  • Loading branch information
szuecs authored Jan 5, 2020
2 parents e4ef0d6 + f41212d commit 53ae0a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,4 +143,4 @@ Thanks to:
See [LICENSE](LICENSE) file.


[SecretService]: https://standards.freedesktop.org/secret-service/
[SecretService]: https://specifications.freedesktop.org/secret-service/latest/
2 changes: 1 addition & 1 deletion secret_service/secret_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ func (s *SecretService) Unlock(collection dbus.ObjectPath) error {
unlocked = append(unlocked, c...)
}

if len(unlocked) != 1 || unlocked[0] != collection {
if len(unlocked) != 1 || (collection != loginCollectionAlias && unlocked[0] != collection) {
return fmt.Errorf("failed to unlock correct collection '%v'", collection)
}

Expand Down

0 comments on commit 53ae0a9

Please sign in to comment.