net: fix small bug introduced by 48f7c4dd87fe

Fixes issue 6063

R=golang-dev, r, dave
CC=dvyukov, golang-dev
https://codereview.appspot.com/12586043