Skip to content

Ensure request.header is never nil#4933

Merged
crosbymichael merged 1 commit intocontainerd:masterfrom
TBBle:fix-resolver-header-map-panic
Jan 12, 2021
Merged

Ensure request.header is never nil#4933
crosbymichael merged 1 commit intocontainerd:masterfrom
TBBle:fix-resolver-header-map-panic

Conversation

@TBBle
Copy link
Copy Markdown
Contributor

@TBBle TBBle commented Jan 12, 2021

Header.Clone() will return nil if called on a nil object.

Fixes a panic seen in the unit tests after #4302 was merged.

Header.Clone() will return `nil` if called on a nil object.

Signed-off-by: Paul "TBBle" Hampson <[email protected]>
@k8s-ci-robot
Copy link
Copy Markdown

Hi @TBBle. Thanks for your PR.

I'm waiting for a containerd member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@TBBle
Copy link
Copy Markdown
Contributor Author

TBBle commented Jan 12, 2021

/cc @estesp

as the merger of #4302, and hence hopefully has context.

@k8s-ci-robot k8s-ci-robot requested a review from estesp January 12, 2021 19:14
@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Jan 12, 2021

Build succeeded.

Copy link
Copy Markdown
Member

@dims dims left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Copy Markdown
Member

@mikebrow mikebrow left a comment

Choose a reason for hiding this comment

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

LGTM

@crosbymichael crosbymichael merged commit 38604a7 into containerd:master Jan 12, 2021
@TBBle TBBle deleted the fix-resolver-header-map-panic branch January 12, 2021 22:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants