E54A [18.03 backport] Fix possible nil pointer exception by thaJeztah · Pull Request #2326 · moby/libnetwork · GitHub
[go: up one dir, main page]

Skip to content

Conversation

thaJeztah
Copy link
Member

backport of #2325 for 18.03
relates to moby/moby#38618

git checkout -b 18.03_backport_fix_crash upstream/bump_18.03
git cherry-pick -s -S -x 1954e1c4b2cbdac2ef851acba12ead3ff6791290
git push -u origin

cherry-pick was clean; no conflicts

It is possible that the node is not yet present in
the node list map. In this case just print a warning
and return. The next iteration would be fine

@selansen
Copy link
Contributor
selansen commented Jan 23, 2019

Interesting gosimple failure in a file which is not part of this commit.

🐳 gosimple
Gosimple has been deprecated. Please use staticcheck instead.
default_gateway.go:183:3: when ok is true, err can't be nil (S1020)
Makefile:119: recipe for target 'gosimple' failed```

@fcrisciani
Copy link

can you also add this commit? #2320 that fixes the gosimple

Flavio Crisciani added 2 commits January 23, 2019 16:19
Signed-off-by: Flavio Crisciani <flavio.crisciani@docker.com>
(cherry picked from commit fd6be31)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
It is possible that the node is not yet present in
the node list map. In this case just print a warning
and return. The next iteration would be fine

Signed-off-by: Flavio Crisciani <flavio.crisciani@docker.com>
(cherry picked from commit 1954e1c)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Copy link
@fcrisciani fcrisciani left a comment

Choose a reason for hiding this comment

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

LGTM

@fcrisciani fcrisciani merged commit 3e2444e into moby:bump_18.03 Jan 23, 2019
@thaJeztah thaJeztah deleted the 18.03_backport_fix_crash branch January 23, 2019 15:54
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
0