summaryrefslogtreecommitdiff
path: root/source3/nsswitch/winbindd_util.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/nsswitch/winbindd_util.c')
-rw-r--r--source3/nsswitch/winbindd_util.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/nsswitch/winbindd_util.c b/source3/nsswitch/winbindd_util.c
index 69d9d31103..37d29e1765 100644
--- a/source3/nsswitch/winbindd_util.c
+++ b/source3/nsswitch/winbindd_util.c
@@ -146,7 +146,7 @@ static struct winbindd_domain *add_trusted_domain(const char *domain_name, const
/* See if we found a match. Check if we need to update the
SID. */
- if ( domain ) {
+ if ( domain && sid) {
if ( sid_equal( &domain->sid, &global_sid_NULL ) )
sid_copy( &domain->sid, sid );
@@ -305,10 +305,10 @@ static void trustdom_recv(void *private_data, BOOL success)
}
}
- /* use the real alt_name if we have one, else pass in NULL */
+ /* use the real alt_name if we have one, else pass in NULL */
- if ( !strequal( alt_name, "(null)" ) )
- alternate_name = alt_name;
+ if ( !strequal( alt_name, "(null)" ) )
+ alternate_name = alt_name;
/* If we have an existing domain structure, calling
add_trusted_domain() will update the SID if