summaryrefslogtreecommitdiff
path: root/source3/nsswitch
diff options
context:
space:
mode:
Diffstat (limited to 'source3/nsswitch')
-rw-r--r--source3/nsswitch/winbindd_ads.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/source3/nsswitch/winbindd_ads.c b/source3/nsswitch/winbindd_ads.c
index 8bec04f1f1..889d72293e 100644
--- a/source3/nsswitch/winbindd_ads.c
+++ b/source3/nsswitch/winbindd_ads.c
@@ -50,11 +50,8 @@ static ADS_STRUCT *ads_cached_connection(struct winbindd_domain *domain)
/* we own this ADS_STRUCT so make sure it goes away */
ads->is_mine = True;
ads_destroy( &ads );
-
- /* we should always be NULL here */
- SMB_ASSERT( ads == NULL );
- }
-
+ domain->private = NULL;
+ }
}
/* we don't want this to affect the users ccache */