diff options
author | Russ Cox <rsc@golang.org> | 2010-04-27 18:48:11 -0700 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2010-04-27 18:48:11 -0700 |
commit | 7d37dcd34065c69dda3a357fa22a8b1a84936b89 (patch) | |
tree | c7e5e347a8a3ebf238d1390a3eeecea8f4ff331b | |
parent | ce69a7a88dfb5d0349b8d6f3f0da301d46aebc5d (diff) | |
download | golang-7d37dcd34065c69dda3a357fa22a8b1a84936b89.tar.gz |
net: fix bug in internetSocket introduced by error cleanup.
Fixes issue 750.
R=adg
CC=golang-dev
http://codereview.appspot.com/988043
-rw-r--r-- | src/pkg/net/ipsock.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/net/ipsock.go b/src/pkg/net/ipsock.go index fcbd5079f..3453aaab1 100644 --- a/src/pkg/net/ipsock.go +++ b/src/pkg/net/ipsock.go @@ -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 |