mirror of
https://github.com/containerd/containerd.git
synced 2026-06-24 08:48:48 +00:00
Read short-circuited on `if dpc.c == nil` before calling `dpc.wg.Wait()` which races with the dialer goroutine spawned in openShimLog. The dialer assigns `dpc.c = c` (and may set `dpc.conerr`) outside any lock; the only synchronization is the WaitGroup, and Read skipped it on the fast path. Signed-off-by: Austin Vazquez <austin.vazquez@docker.com>