svn commit: samba r22026 - in branches/SAMBA_3_0/source/lib: .
abartlet at samba.org
abartlet at samba.org
Mon Apr 2 12:52:09 GMT 2007
Author: abartlet
Date: 2007-04-02 12:52:08 +0000 (Mon, 02 Apr 2007)
New Revision: 22026
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=22026
Log:
Missed in my last commit, another case where we need to copy, not reference.
Andrew Bartlett
Modified:
branches/SAMBA_3_0/source/lib/util_pw.c
Changeset:
Modified: branches/SAMBA_3_0/source/lib/util_pw.c
===================================================================
--- branches/SAMBA_3_0/source/lib/util_pw.c 2007-04-02 07:06:49 UTC (rev 22025)
+++ branches/SAMBA_3_0/source/lib/util_pw.c 2007-04-02 12:52:08 UTC (rev 22026)
@@ -74,7 +74,7 @@
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]);
}
}
More information about the samba-cvs
mailing list