Commit 9c8cee71 authored by Russ Cox's avatar Russ Cox

net: fix bug in internetSocket introduced by error cleanup.

Fixes #750.

R=adg
CC=golang-dev
https://golang.org/cl/988043
parent f5b3c14f
......@@ -78,7 +78,7 @@ func internetSocket(net string, laddr, raddr sockaddr, proto int, mode string, t
}
}
fd, oserr = socket(net, family, proto, 0, la, ra, toAddr)
if err != nil {
if oserr != nil {
goto Error
}
return fd, 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