diff options
Diffstat (limited to 'libgo/go/syscall/netlink_linux.go')
-rw-r--r-- | libgo/go/syscall/netlink_linux.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libgo/go/syscall/netlink_linux.go b/libgo/go/syscall/netlink_linux.go index 49550ea2f02..1b73dce8274 100644 --- a/libgo/go/syscall/netlink_linux.go +++ b/libgo/go/syscall/netlink_linux.go @@ -64,9 +64,10 @@ func NetlinkRIB(proto, family int) ([]byte, error) { return nil, err } var tab []byte + rbNew := make([]byte, Getpagesize()) done: for { - rb := make([]byte, Getpagesize()) + rb := rbNew nr, _, err := Recvfrom(s, rb, 0) if err != nil { return nil, err |