Subject: CVS commit: syssrc
To: None <source-changes@netbsd.org>
From: Christos Zoulas <christos@netbsd.org>
List: source-changes
Date: 05/12/2001 22:21:58
Module Name:	syssrc
Committed By:	christos
Date:		Sat May 12 19:21:58 UTC 2001

Modified Files:
	syssrc/sys/netinet: ip_fil.c

Log Message:
- Handle realloc failure without leaking memory
  (reported by: grendel@heorot.stanford.edu (Ted U)
- Don't cast malloc/realloc/calloc return values because they hide LP64 bugs.
- Don't destroy the whole array when realloc fails
- Use calloc in all cases (malloc was used inconsistently).
- Avoid duplicating code.

Reviewed by: ross


To generate a diff of this commit:
cvs rdiff -r1.66 -r1.67 syssrc/sys/netinet/ip_fil.c

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