ctdb-common: Improve error handling
authorMartin Schwenke <mschwenke@ddn.com>
Tue, 15 Aug 2023 00:43:57 +0000 (10:43 +1000)
committerAmitay Isaacs <amitay@samba.org>
Tue, 15 Aug 2023 09:49:38 +0000 (09:49 +0000)
commitd87041d8968e91db9d257445321b85693303f95e
tree59a468a7e73e47ce9580e2a4e9877384365006b5
parent61d97ebf7d4c46b1a0946634b6e3fe69f44dd01c
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>
ctdb/common/system_socket.c