ctdb-common: Improve error handling
authorMartin Schwenke <mschwenke@ddn.com>
Tue, 15 Aug 2023 00:43:57 +0000 (10:43 +1000)
committerJule Anger <janger@samba.org>
Tue, 29 Aug 2023 09:35:11 +0000 (09:35 +0000)
commit74d43dd395b0481d1c7588e80a0e5cb542e7124b
tree4dacb9a8ad91ba5b94ca9ce827c71fbd74c472c1
parentef212b021e5113a93fc65c9acf02ed5f683abd40
ctdb-common: Improve error handling

Factor out a failure label, which will get more use in subsequent
commits, and only set private_data when success is certain.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15451

Signed-off-by: Martin Schwenke <mschwenke@ddn.com>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
(cherry picked from commit d87041d8968e91db9d257445321b85693303f95e)
ctdb/common/system_socket.c