mirror of
https://github.com/samba-team/samba.git
synced 2025-02-25 17:57:42 +03:00
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>
This commit is contained in:
parent
8d14714cc5
commit
2cfb58d753
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user