summaryrefslogtreecommitdiff
path: root/source3/winbindd/winbindd_samr.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2014-04-28 21:03:40 +1200
committerAndrew Bartlett <abartlet@samba.org>2014-06-04 03:22:26 +0200
commite85ab6851893c9d3cef2272268d69cad3ef30ee7 (patch)
tree909de879e1921457add48c4c8e762e61f6c0c9e5 /source3/winbindd/winbindd_samr.c
parent04bc200e95c3473238a541460a714b13f67375b8 (diff)
downloadsamba-e85ab6851893c9d3cef2272268d69cad3ef30ee7.tar.gz
winbindd: Remove pointless if statement
Change-Id: I7d2646078f6e7ba596b92da7d37c285d10ad38c0 Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'source3/winbindd/winbindd_samr.c')
-rw-r--r--source3/winbindd/winbindd_samr.c24
1 files changed, 10 insertions, 14 deletions
diff --git a/source3/winbindd/winbindd_samr.c b/source3/winbindd/winbindd_samr.c
index e5504349423..78843d62a46 100644
--- a/source3/winbindd/winbindd_samr.c
+++ b/source3/winbindd/winbindd_samr.c
@@ -46,13 +46,11 @@ 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;
- }
+ 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 */
@@ -123,13 +121,11 @@ 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;
- }
+ 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 */