Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[23.0 backport] configfile: Initialize nil AuthConfigs #4451

Merged
merged 1 commit into from
Jul 19, 2023

Conversation

vvoland
Copy link
Collaborator

@vvoland vvoland commented Jul 19, 2023

Initialize AuthConfigs map if it's nil before returning it. This fixes fileStore.Store nil dereference panic when adding a new key to the map.

Signed-off-by: Danial Gharib danial.mail.gh@gmail.com
Signed-off-by: Paweł Gronowski pawel.gronowski@docker.com
(cherry picked from commit ad43df5)

- What I did

- How I did it

- How to verify it

- Description for the changelog

- A picture of a cute animal (not mandatory but encouraged)

Initialize AuthConfigs map if it's nil before returning it.
This fixes fileStore.Store nil dereference panic when adding a new key
to the map.

Signed-off-by: Danial Gharib <danial.mail.gh@gmail.com>
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
(cherry picked from commit ad43df5)
@vvoland vvoland added this to the 23.0.8 milestone Jul 19, 2023
@codecov-commenter
Copy link

Codecov Report

Merging #4451 (b0dca39) into 23.0 (006486f) will decrease coverage by 0.01%.
The diff coverage is 40.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##             23.0    #4451      +/-   ##
==========================================
- Coverage   59.02%   59.01%   -0.01%     
==========================================
  Files         288      288              
  Lines       24820    24824       +4     
==========================================
+ Hits        14650    14651       +1     
- Misses       9284     9286       +2     
- Partials      886      887       +1     

Copy link
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@thaJeztah thaJeztah modified the milestones: 23.0.8, 23.0.7 Jul 19, 2023
@thaJeztah thaJeztah merged commit 67df4e8 into docker:23.0 Jul 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants