]> git.meshlink.io Git - meshlink/commitdiff
Prevent meshlink_errno from being set incorrectly by meshlink_invite()
authorGuus Sliepen <guus@meshlink.io>
Mon, 3 Feb 2020 16:03:07 +0000 (17:03 +0100)
committerGuus Sliepen <guus@meshlink.io>
Mon, 3 Feb 2020 16:03:07 +0000 (17:03 +0100)
We called a public API function inside meshlink_invite() to check that we
don't try to invite a node that's already known. That causes it to set
meshlink_errno to MESHLINK_ENOENT. Fix this by calling lookup_node()
instead.


No differences found