diff options
author | Andrew Bartlett <abartlet@samba.org> | 2007-04-02 12:52:08 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:19:04 -0500 |
commit | ec497bf02c59e3a8c5c72f4addac1095e99c43c6 (patch) | |
tree | 2effcf663b5a637d3c3097fa0ecfc70ef4440543 | |
parent | fd2e5b90a42c86736416adf1d5e06315605476ff (diff) | |
download | samba-ec497bf02c59e3a8c5c72f4addac1095e99c43c6.tar.gz samba-ec497bf02c59e3a8c5c72f4addac1095e99c43c6.tar.bz2 samba-ec497bf02c59e3a8c5c72f4addac1095e99c43c6.zip |
r22026: Missed in my last commit, another case where we need to copy, not reference.
Andrew Bartlett
(This used to be commit 635b83a21683068eb3908506d5ee1191e55381d1)
-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 d6dfbd5016..52054ce90a 100644 --- a/source3/lib/util_pw.c +++ b/source3/lib/util_pw.c @@ -74,7 +74,7 @@ struct passwd *getpwnam_alloc(TALLOC_CTX *mem_ctx, const char *name) if ((pwnam_cache[i] != NULL) && (strcmp(name, pwnam_cache[i]->pw_name) == 0)) { DEBUG(10, ("Got %s from pwnam_cache\n", name)); - return (struct passwd *)talloc_reference(mem_ctx, pwnam_cache[i]); + return tcopy_passwd(mem_ctx, pwnam_cache[i]); } } |