Commit c9bb0422 authored by Rob Pike's avatar Rob Pike

net: more selfConnect debugging: panic if ra == nil in internetSocket

TBR=dsymonds

R=dsymonds
CC=golang-dev
https://golang.org/cl/5687058
parent 3970d2fd
......@@ -117,6 +117,10 @@ func internetSocket(net string, laddr, raddr sockaddr, sotype, proto int, mode s
if ra, oserr = raddr.sockaddr(family); oserr != nil {
goto Error
}
if ra == nil {
// TODO(r): part of selfConnect debugging
panic("ra nil when raddr non-nil")
}
}
fd, oserr = socket(net, family, sotype, proto, la, ra, toAddr)
if oserr != nil {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment