]> git.ipfire.org Git - thirdparty/iproute2.git/commit
tipc/node: Fix socket fd check in cmd_node_get_addr()
authorPhil Sutter <phil@nwl.cc>
Thu, 17 Aug 2017 17:09:32 +0000 (19:09 +0200)
committerStephen Hemminger <stephen@networkplumber.org>
Fri, 18 Aug 2017 16:13:17 +0000 (09:13 -0700)
commit436270a45dea2fe5dbc4680f9c8e31f07d167f20
treedff9837bf22f0aa0e355af019b284e197fcf31e0
parent1e3197e0fdbf299fe24cdba7c0d613317ed82063
tipc/node: Fix socket fd check in cmd_node_get_addr()

socket() returns -1 on error, not 0.

Signed-off-by: Phil Sutter <phil@nwl.cc>
tipc/node.c