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

portmap: fix checkPorts result when chain does not exist #707

Merged
merged 1 commit into from
Feb 23, 2022

Conversation

danwinship
Copy link
Contributor

checkPorts would return nil rather than an error if the per-container DNAT chain didn't exist, meaning CHECK would erroneously return success rather than failure.

chain.check() already (correctly) checks that the chain exists, so there's no need to do it separately before calling that anyway.

checkPorts would return nil rather than an error if the per-container
DNAT chain didn't exist, meaning CHECK would erroneously return
success rather than failure.

chain.check() already (correctly) checks that the chain exists, so
there's no need to do it separately before calling that anyway.

Signed-off-by: Dan Winship <[email protected]>
@danwinship
Copy link
Contributor Author

cc @squeed @mccv1r0

@dcbw
Copy link
Member

dcbw commented Feb 23, 2022

LGTM

@squeed squeed merged commit 9f67faf into containernetworking:master Feb 23, 2022
@danwinship danwinship deleted the checkPorts branch February 24, 2022 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants