svn commit: samba r12064 - in branches/SAMBA_4_0/source/auth/kerberos: .

tridge at samba.org tridge at samba.org
Mon Dec 5 06:05:02 GMT 2005


Author: tridge
Date: 2005-12-05 06:05:02 +0000 (Mon, 05 Dec 2005)
New Revision: 12064

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

Log:

pass back the socket level error correctly (so we get
NT_STATUS_CONNECTION_REFUSED when a KDC is not listening)

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


Changeset:
Modified: branches/SAMBA_4_0/source/auth/kerberos/krb5_init_context.c
===================================================================
--- branches/SAMBA_4_0/source/auth/kerberos/krb5_init_context.c	2005-12-05 06:01:22 UTC (rev 12063)
+++ branches/SAMBA_4_0/source/auth/kerberos/krb5_init_context.c	2005-12-05 06:05:02 UTC (rev 12064)
@@ -94,14 +94,9 @@
 			talloc_free(tmp_ctx);
 			return;
 		}
-		if (dsize == 0) {
-			smb_krb5->status = NT_STATUS_UNEXPECTED_NETWORK_ERROR;
-			talloc_free(tmp_ctx);
-			return;
-		}
-		
+
 		blob = data_blob_talloc(tmp_ctx, NULL, dsize);
-		if (blob.data == NULL) {
+		if (blob.data == NULL && dsize != 0) {
 			smb_krb5->status = NT_STATUS_NO_MEMORY;
 			talloc_free(tmp_ctx);
 			return;



More information about the samba-cvs mailing list