git.samba.org
/
tprouty
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d030947
)
r22008: use string_term_tdb_data()
author
Stefan Metzmacher
<metze@samba.org>
Thu, 29 Mar 2007 08:24:15 +0000
(08:24 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 17:19:00 +0000
(12:19 -0500)
metze
source/smbd/connection.c
patch
|
blob
|
history
diff --git
a/source/smbd/connection.c
b/source/smbd/connection.c
index 0442a9441add06a5fd30af001222c8f7a64419ec..7838c5c23dc13e8aec1c757e4289306121314d8a 100644
(file)
--- a/
source/smbd/connection.c
+++ b/
source/smbd/connection.c
@@
-272,11
+272,10
@@
static TDB_DATA* make_pipe_rec_key( struct pipe_open_rec *prec )
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;
}