[SCM] Samba Shared Repository - branch v3-3-test updated - release-3-2-0pre2-4469-gfa20fa5

Günther Deschner gd at samba.org
Fri Nov 21 01:19:33 GMT 2008


The branch, v3-3-test has been updated
       via  fa20fa5d243ee640f5d564525358c1f5ba2df3a7 (commit)
      from  80025324a944d74df4df883e7e9987533c8f1356 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-3-test


- Log -----------------------------------------------------------------
commit fa20fa5d243ee640f5d564525358c1f5ba2df3a7
Author: Volker Lendecke <vl at sernet.de>
Date:   Sat Aug 23 13:12:05 2008 +0200

    Fix a memleak in calculate_next_machine_pwd_change (This used to be commit 5314f06dcdf14ce5e038a03a3e4dfded227bd00c)

-----------------------------------------------------------------------

Summary of changes:
 source/winbindd/winbindd_dual.c |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/winbindd/winbindd_dual.c b/source/winbindd/winbindd_dual.c
index e4e6544..403a9bc 100644
--- a/source/winbindd/winbindd_dual.c
+++ b/source/winbindd/winbindd_dual.c
@@ -883,14 +883,19 @@ static bool calculate_next_machine_pwd_change(const char *domain,
 	time_t pass_last_set_time;
 	time_t timeout;
 	time_t next_change;
+	char *pw;
 
-	if (!secrets_fetch_machine_password(domain,
+	pw = secrets_fetch_machine_password(domain,
 					    &pass_last_set_time,
-					    NULL)) {
+					    NULL);
+
+	if (pw == NULL) {
 		DEBUG(0,("cannot fetch own machine password ????"));
 		return false;
 	}
 
+	SAFE_FREE(pw);
+
 	timeout = get_machine_password_timeout();
 	if (timeout == 0) {
 		DEBUG(10,("machine password never expires\n"));


-- 
Samba Shared Repository


More information about the samba-cvs mailing list