svn rev #19065: trunk/src/lib/krb5/os/

jaltman@MIT.EDU jaltman at MIT.EDU
Thu Jan 18 06:35:34 EST 2007


Commit By: jaltman
Log Message: 
ticket: 5394
tags: pullup

  	sendto_kdc.c: use of a variable index into a dynamically 
	allocated array to determine the sizeof() an object makes
	it unclear what type of object is involved.  It also requires
	a runtime check instead of a compile time replacement.  
	Not to mention that it could lead to the evaluation of an 
	uninitialized variable as was done in this case.  Replace
	sizeof(array index variable) with sizeof(type). 

	memset() the correct data structure.  




Changed Files:
U   trunk/src/lib/krb5/os/sendto_kdc.c



More information about the cvs-krb5 mailing list