ctdb-common: Improve error handling
commit9f57371128d8ef40448651874857f445be6ed041
authorMartin Schwenke <mschwenke@ddn.com>
Tue, 15 Aug 2023 00:43:57 +0000 (15 10:43 +1000)
committerJule Anger <janger@samba.org>
Tue, 29 Aug 2023 08:25:12 +0000 (29 08:25 +0000)
tree08ae28341e861ad2f29324239a4a371867d9cd9b
parent087e7cdc4d1002dd4ffc8959e11706c0557fbc94
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