svn commit: samba r23038 - in
branches/SAMBA_3_0_26/source/nsswitch: .
metze at samba.org
metze at samba.org
Mon May 21 13:39:35 GMT 2007
Author: metze
Date: 2007-05-21 13:39:34 +0000 (Mon, 21 May 2007)
New Revision: 23038
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=23038
Log:
use a helper function to construct the TDB_DATA key
as strlen_m() is totally wrong here anyway
metze
Modified:
branches/SAMBA_3_0_26/source/nsswitch/winbindd_cache.c
Changeset:
Modified: branches/SAMBA_3_0_26/source/nsswitch/winbindd_cache.c
===================================================================
--- branches/SAMBA_3_0_26/source/nsswitch/winbindd_cache.c 2007-05-21 13:33:46 UTC (rev 23037)
+++ branches/SAMBA_3_0_26/source/nsswitch/winbindd_cache.c 2007-05-21 13:39:34 UTC (rev 23038)
@@ -3566,8 +3566,7 @@
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;
}
More information about the samba-cvs
mailing list