Skip to content

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

Signed-off-by: robert-cronin <robert.owen.cronin@gmail.com>
@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