-
Notifications
You must be signed in to change notification settings - Fork 248
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(auth): Fix Tenant iterator to return the correct sequence of poin…
…ters (#323) Previously, tenant_mgt.go would copy the tenant from the network response, and return a pointer to it. Then it would re-use the same memory for the next tenant, resulting in a list of pointers that all pointed to the last tenant. This change returns pointers to the network response instead (and as a bonus, avoids the copy entirely).
- Loading branch information
Showing
2 changed files
with
19 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters