svn commit: samba r11437 - in branches/SAMBA_4_0/source/kdc: .

abartlet at samba.org abartlet at samba.org
Tue Nov 1 13:29:23 GMT 2005


Author: abartlet
Date: 2005-11-01 13:29:22 +0000 (Tue, 01 Nov 2005)
New Revision: 11437

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=11437

Log:
Fix (valid!) use of uninitialised value warnings.

Andrew Bartlett

Modified:
   branches/SAMBA_4_0/source/kdc/kpasswdd.c


Changeset:
Modified: branches/SAMBA_4_0/source/kdc/kpasswdd.c
===================================================================
--- branches/SAMBA_4_0/source/kdc/kpasswdd.c	2005-11-01 07:07:48 UTC (rev 11436)
+++ branches/SAMBA_4_0/source/kdc/kpasswdd.c	2005-11-01 13:29:22 UTC (rev 11437)
@@ -130,6 +130,7 @@
 			reject_string = "Password does not meet complexity requirements";
 			break;
 		case SAMR_REJECT_OTHER:
+		default:
 			reject_string = talloc_asprintf(mem_ctx, "Password must be at least %d characters long, and cannot match any of your %d previous passwords",
 							dominfo->min_password_length, dominfo->password_history_length);
 			break;
@@ -209,7 +210,7 @@
 	struct ldb_message *msg = ldb_msg_new(gensec_security);
 	krb5_context context = kdc->smb_krb5_context->krb5_context;
 	int ret;
-	if (!samdb || !msg) {
+	if (!msg) {
 		return False;
 	}
 



More information about the samba-cvs mailing list