]> git.meshlink.io Git - meshlink/commit
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)
commiteeb8f3502fdf25704ce2d234732509cad32e8bff
tree8495b4f2b2e3eb21ca24a95695b18ce5b58cdbff
parent902446edf822a32383c4fa4b7c13b83a568095ad
Prevent meshlink_errno from being set incorrectly by meshlink_invite()

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.
src/meshlink.c