svn commit: samba r3610 - in branches/SAMBA_4_0/source/libcli/auth: .

tridge at samba.org tridge at samba.org
Mon Nov 8 02:01:06 GMT 2004


Author: tridge
Date: 2004-11-08 02:01:05 +0000 (Mon, 08 Nov 2004)
New Revision: 3610

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

Log:
prevent segv with heimdal and password krb5 init

Modified:
   branches/SAMBA_4_0/source/libcli/auth/kerberos.c


Changeset:
Modified: branches/SAMBA_4_0/source/libcli/auth/kerberos.c
===================================================================
--- branches/SAMBA_4_0/source/libcli/auth/kerberos.c	2004-11-08 01:46:00 UTC (rev 3609)
+++ branches/SAMBA_4_0/source/libcli/auth/kerberos.c	2004-11-08 02:01:05 UTC (rev 3610)
@@ -61,14 +61,17 @@
 	krb5_error_code code = 0;
 	krb5_principal me;
 	krb5_creds my_creds;
+	krb5_get_init_creds_opt options;
 
 	if ((code = krb5_parse_name(ctx, principal, &me))) {
 		return code;
 	}
-	
+
+	ZERO_STRUCT(options);
+
 	if ((code = krb5_get_init_creds_password(ctx, &my_creds, me, password, 
 						 kerb_prompter, 
-						 NULL, 0, NULL, NULL))) {
+						 NULL, 0, NULL, &options))) {
 		krb5_free_principal(ctx, me);
 		return code;
 	}



More information about the samba-cvs mailing list