git.samba.org
/
abartlet
/
samba.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4ebbbdd
)
s3: Remove talloc_autofree_context() from change_to_guest()
author
Volker Lendecke
<vl@samba.org>
Sat, 25 Sep 2010 23:31:18 +0000
(16:31 -0700)
committer
Volker Lendecke
<vl@samba.org>
Sun, 26 Sep 2010 01:29:29 +0000
(
03:29
+0200)
pass is freed at the exit of this routine
source3/smbd/uid.c
patch
|
blob
|
history
diff --git
a/source3/smbd/uid.c
b/source3/smbd/uid.c
index 3b40cefd361fac508eadf5dad2ff856d3aaced94..c52a819ba3b438f78dad3613e54fdbac3db23399 100644
(file)
--- a/
source3/smbd/uid.c
+++ b/
source3/smbd/uid.c
@@
-32,7
+32,7
@@
bool change_to_guest(void)
{
struct passwd *pass;
- pass = getpwnam_alloc(talloc_
autofree_context
(), lp_guestaccount());
+ pass = getpwnam_alloc(talloc_
tos
(), lp_guestaccount());
if (!pass) {
return false;
}