Skip to content

Fix nil pointer dereference in TCPTransport.DoRaw #16

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

Merged

Conversation

robert-cronin
Copy link
Contributor

Fixes #15

Initialize the dial field in TCPTransport to prevent panic when DoRaw is called.
The dial function was missing, causing a nil pointer dereference at transport.go:84.

❯ go test ./transport/
ok      github.com/cpuguy83/go-docker/transport 0.016s

@robert-cronin robert-cronin force-pushed the fix/nil-pointer-dereference-in-do-raw branch from d61ebcd to 5348b54 Compare June 26, 2025 06:57
@cpuguy83
Copy link
Owner

Looks like one of the tests broke (incorrectly assuming structure of dockerhub image) but it is unrelated.

LGTM, thank you!

@cpuguy83 cpuguy83 merged commit 959f7b4 into cpuguy83:master Jun 26, 2025
1 check failed
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.

Nil pointer dereference in Transport.DoRaw when connecting to TLS-enabled Docker daemon
2 participants