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

Avoid setting HostIP to a nil pointer (when we expect a nil interface). #449

Merged
merged 1 commit into from
Jun 12, 2017

Conversation

fasaxc
Copy link
Member

@fasaxc fasaxc commented Jun 12, 2017

Description

This avoids storing a (*net.IP)(nil) in the Value, which is unexpected downstream, and causes a nil pointer panic if the (*net.IP)(nil) is stringified.

Todos

  • Tests

@fasaxc fasaxc force-pushed the fix-nil-node-ip-2 branch 2 times, most recently from b94efc0 to 7f55a4e Compare June 12, 2017 13:14
Copy link
Member

@matthewdupre matthewdupre left a comment

Choose a reason for hiding this comment

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

LGTM

@matthewdupre matthewdupre merged commit 3cfe5e8 into projectcalico:master Jun 12, 2017
song-jiang pushed a commit to song-jiang/libcalico-go that referenced this pull request Jul 19, 2021
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.

2 participants