From 90b7714f2cacffa6e416511beff68207b0493d2c Mon Sep 17 00:00:00 2001 From: gVisor bot Date: Sat, 19 Mar 2022 13:58:51 +0800 Subject: [PATCH] Chore: fix typo (#2033) --- component/process/process_linux.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/component/process/process_linux.go b/component/process/process_linux.go index d70a2922..1dfd0eda 100644 --- a/component/process/process_linux.go +++ b/component/process/process_linux.go @@ -103,12 +103,12 @@ func resolveSocketByNetlink(network string, ip net.IP, srcPort int) (int32, int3 return 0, 0, fmt.Errorf("netlink message: NLMSG_ERROR") } - uid, inode := unpackSocketDiagResponse(&messages[0]) - if uid < 0 || inode < 0 { - return 0, 0, fmt.Errorf("invalid uid(%d) or inode(%d)", uid, inode) + inode, uid := unpackSocketDiagResponse(&messages[0]) + if inode < 0 || uid < 0 { + return 0, 0, fmt.Errorf("invalid inode(%d) or uid(%d)", inode, uid) } - return uid, inode, nil + return inode, uid, nil } func packSocketDiagRequest(family, protocol byte, source net.IP, sourcePort uint16) []byte {