Subject: CVS commit: src/bin/date
To: None <source-changes@NetBSD.org>
From: Christian Biere <cbiere@netbsd.org>
List: source-changes
Date: 02/04/2007 22:21:53
Module Name:	src
Committed By:	cbiere
Date:		Sun Feb  4 22:21:53 UTC 2007

Modified Files:
	src/bin/date: netdate.c

Log Message:
 * Prevent out-of-bounds read tsptype if a packet with
   an unknown msg_type is received.
 * Check the received packet size.
 * Use strncpy() instead of strlcpy() so that we don't
   send gibberish from the stack.
 * No need to bind().
 * htons()/htonl() use uint16_t/uint32_t not u_short/u_long.


To generate a diff of this commit:
cvs rdiff -r1.25 -r1.26 src/bin/date/netdate.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.