svn commit: samba r22008 - in branches/SAMBA_3_0/source/smbd: .

metze at samba.org metze at samba.org
Thu Mar 29 08:24:16 GMT 2007


Author: metze
Date: 2007-03-29 08:24:15 +0000 (Thu, 29 Mar 2007)
New Revision: 22008

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=22008

Log:
use string_term_tdb_data()

metze
Modified:
   branches/SAMBA_3_0/source/smbd/connection.c


Changeset:
Modified: branches/SAMBA_3_0/source/smbd/connection.c
===================================================================
--- branches/SAMBA_3_0/source/smbd/connection.c	2007-03-29 08:08:52 UTC (rev 22007)
+++ branches/SAMBA_3_0/source/smbd/connection.c	2007-03-29 08:24:15 UTC (rev 22008)
@@ -272,11 +272,10 @@
 	snprintf( key_string, sizeof(key_string), "%s/%d/%d",
 		prec->name, procid_to_pid(&prec->pid), prec->pnum );
 		
-	if ( (kbuf->dptr = talloc_strdup(prec, key_string)) == NULL )
+	*kbuf = string_term_tdb_data(talloc_strdup(prec, key_string));
+	if (kbuf->dptr == NULL )
 		return NULL;
-		
-	kbuf->dsize = strlen(key_string)+1;
-	
+
 	return kbuf;
 }
 



More information about the samba-cvs mailing list