prevent accidental var shadowing

Fixes #1544
This commit is contained in:
Matthias Radestock committed 2015-10-16 01:05:04 +01:00
1 parent 61d289f414
commit 230931a2c9
1 file changed
+2 -1
+2 -1
View File
@@ -170,7 +170,8 @@ func main() {
// than capture via ODP misses, even when using an
// ODP-based bridge. So when using weave encyption,
// it's preferable to use -iface.
iface, err := weavenet.EnsureInterface(ifaceName)
var err error
iface, err = weavenet.EnsureInterface(ifaceName)
checkFatal(err)
// bufsz flag is in MB