]> git.meshlink.io Git - meshlink/commit
Have meshlink_get_node() and _submesh() set MESHLINK_ENOENT when appropriate.
authorGuus Sliepen <guus@meshlink.io>
Fri, 4 Oct 2019 14:55:48 +0000 (16:55 +0200)
committerGuus Sliepen <guus@meshlink.io>
Fri, 4 Oct 2019 14:55:48 +0000 (16:55 +0200)
commit1dff8bd48588b90d7595b61bbb3594ba8ce1cb20
tree5b0e57e0ea03ac4929507a7f496279690fec13c6
parent99b4836a1e463a225a003623cce09f462d77f4d2
Have meshlink_get_node() and _submesh() set MESHLINK_ENOENT when appropriate.

These functions can return NULL both when the parameters are invalid or if
the node or submesh does not exist, meshlink_errno must be set correctly
to distinguish between the two cases.
src/meshlink.c