diff options
author | Simo Sorce <idra@samba.org> | 2002-03-18 23:57:14 +0000 |
---|---|---|
committer | Simo Sorce <idra@samba.org> | 2002-03-18 23:57:14 +0000 |
commit | 32334bc6553c25b706e60a321f9c16f8931f94c1 (patch) | |
tree | 4b4a57dc2ccdf262c6a9e463d15c07e7ad9fa08c /source3/lib/util_pw.c | |
parent | 9fffb0859d07a885278c395a366656f05731235c (diff) | |
download | samba-32334bc6553c25b706e60a321f9c16f8931f94c1.tar.gz samba-32334bc6553c25b706e60a321f9c16f8931f94c1.tar.bz2 samba-32334bc6553c25b706e60a321f9c16f8931f94c1.zip |
more verbose checking in talloc and util_pw
fixed tdbsam memory corruption (and segfault)
reducing calls to pdb_uid_to_user_rid and countrary to 0 to move to a non alghoritmic rid allocation with some passdb modules.
(This used to be commit 9836af7cd623357feaec07bc49cfb78f0aa01fc3)
Diffstat (limited to 'source3/lib/util_pw.c')
-rw-r--r-- | source3/lib/util_pw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/util_pw.c b/source3/lib/util_pw.c index 67ed43f216..259649a064 100644 --- a/source3/lib/util_pw.c +++ b/source3/lib/util_pw.c @@ -68,7 +68,7 @@ struct passwd *make_modifyable_passwd(const struct passwd *from) static struct passwd *alloc_copy_passwd(const struct passwd *from) { - struct passwd *ret = smb_xmalloc(sizeof(*ret)); + struct passwd *ret = smb_xmalloc(sizeof(struct passwd)); ZERO_STRUCTP(ret); ret->pw_name = smb_xstrdup(from->pw_name); ret->pw_passwd = smb_xstrdup(from->pw_passwd); |