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;