Subject: CVS commit: src/sbin/cgdconfig
To: None <source-changes@NetBSD.org>
From: Luke Mewburn <lukem@netbsd.org>
List: source-changes
Date: 06/02/2005 01:31:30
Module Name:	src
Committed By:	lukem
Date:		Thu Jun  2 01:31:30 UTC 2005

Modified Files:
	src/sbin/cgdconfig: utils.c

Log Message:
Avoid dereferencing/free()ing invalid pointers if the random device
cannot be opened.
Detected with gcc -Wuninitialized.
(The bug was fixed in rev 1.4 by rumble but reintroduced in rev 1.5 by tv !)


To generate a diff of this commit:
cvs rdiff -r1.7 -r1.8 src/sbin/cgdconfig/utils.c

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