summaryrefslogtreecommitdiff
path: root/source3/nsswitch/winbindd_cache.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/nsswitch/winbindd_cache.c')
-rw-r--r--source3/nsswitch/winbindd_cache.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/nsswitch/winbindd_cache.c b/source3/nsswitch/winbindd_cache.c
index 28a0a09422..aa38bb6971 100644
--- a/source3/nsswitch/winbindd_cache.c
+++ b/source3/nsswitch/winbindd_cache.c
@@ -3566,8 +3566,7 @@ static TDB_DATA make_tdc_key( const char *domain_name )
asprintf( &keystr, "TRUSTDOMCACHE/%s", domain_name );
- key.dptr = (unsigned char*)keystr;
- key.dsize = strlen_m(keystr) + 1;
+ key = string_term_tdb_data(keystr);
return key;
}