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

abartlet at samba.org abartlet at samba.org
Mon Nov 7 02:19:20 GMT 2005


Author: abartlet
Date: 2005-11-07 02:19:19 +0000 (Mon, 07 Nov 2005)
New Revision: 11540

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

Log:
Some notes to myself on RFC complience.

Andrew Bartlett

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


Changeset:
Modified: branches/SAMBA_4_0/source/kdc/kdc.c
===================================================================
--- branches/SAMBA_4_0/source/kdc/kdc.c	2005-11-06 14:31:01 UTC (rev 11539)
+++ branches/SAMBA_4_0/source/kdc/kdc.c	2005-11-07 02:19:19 UTC (rev 11540)
@@ -101,6 +101,9 @@
 		if (NT_STATUS_EQUAL(status, STATUS_MORE_ENTRIES)) {
 			break;
 		}
+		if (NT_STATUS_EQUAL(status, NT_STATUS_INVALID_BUFFER_SIZE)) {
+			/* Replace with a krb err, response to big */
+		}
 		
 		DLIST_REMOVE(kdc_socket->send_queue, rep);
 		talloc_free(rep);
@@ -248,6 +251,10 @@
 		if (kdcconn->partial_read != 4) return;
 
 		packet_length = RIVAL(kdcconn->partial.data, 0) + 4;
+		
+		if (packet_length & (1 << 31)) {
+			/* return 'KRB_ERR_FIELD_TOOLONG' and terminate */
+		}
 
 		kdcconn->partial.data = talloc_realloc(kdcconn, kdcconn->partial.data, 
 						       uint8_t, packet_length);



More information about the samba-cvs mailing list