Author: jra Date: 2006-01-27 19:25:06 +0000 (Fri, 27 Jan 2006) New Revision: 13191
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=13191 Log: Fix #3458 from Andriy Gapon <[EMAIL PROTECTED]>. Don't access free'd memory. Jerry please pick up for 3.0.21b ! Jeremy. Modified: trunk/source/passdb/secrets.c Changeset: Modified: trunk/source/passdb/secrets.c =================================================================== --- trunk/source/passdb/secrets.c 2006-01-27 19:24:37 UTC (rev 13190) +++ trunk/source/passdb/secrets.c 2006-01-27 19:25:06 UTC (rev 13191) @@ -299,7 +299,6 @@ *pass_last_set_time = pass->mod_time; } memcpy(ret_pwd, pass->hash, 16); - SAFE_FREE(pass); if (channel) { *channel = get_default_sec_channel(); @@ -313,6 +312,7 @@ } } + SAFE_FREE(pass); return True; }