mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
winbindd: Remove pointless if statement
Change-Id: I7d2646078f6e7ba596b92da7d37c285d10ad38c0 Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
parent
04bc200e95
commit
e85ab68518
@ -46,14 +46,12 @@ static NTSTATUS open_internal_samr_pipe(TALLOC_CTX *mem_ctx,
|
||||
struct auth_session_info *session_info = NULL;
|
||||
NTSTATUS status;
|
||||
|
||||
if (session_info == NULL) {
|
||||
status = make_session_info_system(mem_ctx, &session_info);
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
DEBUG(0, ("open_samr_pipe: Could not create auth_session_info: %s\n",
|
||||
nt_errstr(status)));
|
||||
return status;
|
||||
}
|
||||
}
|
||||
|
||||
/* create a samr connection */
|
||||
status = rpc_pipe_open_internal(mem_ctx,
|
||||
@ -123,14 +121,12 @@ static NTSTATUS open_internal_lsa_pipe(TALLOC_CTX *mem_ctx,
|
||||
struct auth_session_info *session_info = NULL;
|
||||
NTSTATUS status;
|
||||
|
||||
if (session_info == NULL) {
|
||||
status = make_session_info_system(mem_ctx, &session_info);
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
DEBUG(0, ("open_lsa_pipe: Could not create auth_session_info: %s\n",
|
||||
nt_errstr(status)));
|
||||
return status;
|
||||
}
|
||||
}
|
||||
|
||||
/* create a lsa connection */
|
||||
status = rpc_pipe_open_internal(mem_ctx,
|
||||
|
Loading…
Reference in New Issue
Block a user