diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2003-03-19 21:09:18 +0000 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2003-03-19 21:09:18 +0000 |
commit | 9a328248aecbaf7554d93bad02314733ad988488 (patch) | |
tree | bffddf93a250e1908362dc767f75fdb681ee2a85 /source3/passdb/pdb_interface.c | |
parent | e542eedd18701fcc413e924b0a9787eec925dee6 (diff) | |
download | samba-9a328248aecbaf7554d93bad02314733ad988488.tar.gz samba-9a328248aecbaf7554d93bad02314733ad988488.tar.bz2 samba-9a328248aecbaf7554d93bad02314733ad988488.zip |
Fix corrupt memory reading in smb_register_passdb
(This used to be commit 6acbb37e4e32de635ace8420a5182b04b6527e34)
Diffstat (limited to 'source3/passdb/pdb_interface.c')
-rw-r--r-- | source3/passdb/pdb_interface.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/passdb/pdb_interface.c b/source3/passdb/pdb_interface.c index 9819df75ec..42310b41b0 100644 --- a/source3/passdb/pdb_interface.c +++ b/source3/passdb/pdb_interface.c @@ -53,7 +53,7 @@ BOOL smb_register_passdb(const char *name, pdb_init_function init, int version) } entry = smb_xmalloc(sizeof(struct pdb_init_function_entry)); - entry->name = name; + entry->name = smb_xstrdup(name); entry->init = init; DLIST_ADD(backends, entry); |