git.samba.org
/
kai
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9b2d314
)
s3: Remove talloc_autofree_context() from lookup_unix_user_name()
author
Volker Lendecke
<vl@samba.org>
Sat, 25 Sep 2010 23:24:16 +0000
(16:24 -0700)
committer
Volker Lendecke
<vl@samba.org>
Sun, 26 Sep 2010 01:29:28 +0000
(
03:29
+0200)
pwd is freed in this routine immediately
source3/passdb/util_unixsids.c
patch
|
blob
|
history
diff --git
a/source3/passdb/util_unixsids.c
b/source3/passdb/util_unixsids.c
index 1bd07c7a2f487ec9f2fd02072aeb52b1ca9f205a..24d2c454490162746723be38bf109c90d3505c31 100644
(file)
--- a/
source3/passdb/util_unixsids.c
+++ b/
source3/passdb/util_unixsids.c
@@
-64,7
+64,7
@@
bool lookup_unix_user_name(const char *name, struct dom_sid *sid)
struct passwd *pwd;
bool ret;
- pwd = getpwnam_alloc(talloc_
autofree_context
(), name);
+ pwd = getpwnam_alloc(talloc_
tos
(), name);
if (pwd == NULL) {
return False;
}