diff options
author | Ralph Wuerthner <ralph.wuerthner@de.ibm.com> | 2018-10-02 10:58:12 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2018-11-01 01:59:10 +0100 |
commit | 2cfb58d7535e63c5ef9f3970ebaa189741b715cb (patch) | |
tree | 6909a3833ae40355798dd97e622a0d2cb50d183f /nsswitch | |
parent | 8d14714cc5e4c2b439e973faf602afb2fc1e7488 (diff) | |
download | samba-2cfb58d7535e63c5ef9f3970ebaa189741b715cb.tar.gz |
nsswitch: use goto to have only one function return
Signed-off-by: Ralph Wuerthner <ralph.wuerthner@de.ibm.com>
Reviewed-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'nsswitch')
-rw-r--r-- | nsswitch/wb_common.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/nsswitch/wb_common.c b/nsswitch/wb_common.c index 42b341b8c1c..c2f67d7a556 100644 --- a/nsswitch/wb_common.c +++ b/nsswitch/wb_common.c @@ -731,10 +731,12 @@ NSS_STATUS winbindd_request_response(struct winbindd_context *ctx, } status = winbindd_send_request(ctx, req_type, 0, request); - if (status != NSS_STATUS_SUCCESS) - return (status); + if (status != NSS_STATUS_SUCCESS) { + goto out; + } status = winbindd_get_response(ctx, response); +out: return status; } @@ -750,10 +752,12 @@ NSS_STATUS winbindd_priv_request_response(struct winbindd_context *ctx, } status = winbindd_send_request(ctx, req_type, 1, request); - if (status != NSS_STATUS_SUCCESS) - return (status); + if (status != NSS_STATUS_SUCCESS) { + goto out; + } status = winbindd_get_response(ctx, response); +out: return status; } |