ctdb-mutex: Don't pass NULL to tevent_req_is_unix_error()
commit490e5f4d4ce2facd4c396a2e213f53de923629c2
authorMartin Schwenke <martin@meltin.net>
Fri, 21 Jan 2022 01:09:45 +0000 (21 12:09 +1100)
committerAmitay Isaacs <amitay@samba.org>
Tue, 3 May 2022 09:19:31 +0000 (3 09:19 +0000)
tree5605c24e3c418de504021c24a680e9808e6cc2c9
parent45b648486b9751beba7500c25294b4f7671caf44
ctdb-mutex: Don't pass NULL to tevent_req_is_unix_error()

If there is an error then this pointer is unconditionally
dereferenced.

However, the only possible error appears to be ENOMEM, where a crash
caused by dereferencing a NULL pointer isn't a terrible outcome.  In
the absence of a security issue this is probably not worth
backporting.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/server/ctdb_mutex_fcntl_helper.c