From: Guus Sliepen Date: Sun, 23 Feb 2020 00:40:26 +0000 (+0100) Subject: Add missing NULL-check in meshlink_verify(). X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=4b9b60a5faaa9438ee6c2b4eb67103497ed62a4b;p=meshlink Add missing NULL-check in meshlink_verify(). --- diff --git a/src/meshlink.c b/src/meshlink.c index 07c518e0..0354c86d 100644 --- a/src/meshlink.c +++ b/src/meshlink.c @@ -2279,7 +2279,7 @@ bool meshlink_sign(meshlink_handle_t *mesh, const void *data, size_t len, void * } bool meshlink_verify(meshlink_handle_t *mesh, meshlink_node_t *source, const void *data, size_t len, const void *signature, size_t siglen) { - if(!mesh || !data || !len || !signature) { + if(!mesh || !source || !data || !len || !signature) { meshlink_errno = MESHLINK_EINVAL; return false; }