mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
r22008: use string_term_tdb_data()
metze
(This used to be commit 1f047d7e31
)
This commit is contained in:
parent
7bdd7ecafa
commit
b9461058d5
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user