2300. [bug] Fixed failure to close open file in

bin/tests/names/t_names.c. [RT #17473]
This commit is contained in:
Mark Andrews 2008-01-14 11:47:48 +00:00
parent bd97dba011
commit 80f20cb452
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,6 @@
2300. [bug] Fixed failure to close open file in
bin/tests/names/t_names.c. [RT #17473]
2299. [bug] Remove unnecessary NULL check in
bin/nsupdate/nsupdate.c. [RT #17475]

View file

@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: t_names.c,v 1.43 2007/06/19 23:47:00 tbox Exp $ */
/* $Id: t_names.c,v 1.44 2008/01/14 11:47:48 marka Exp $ */
#include <config.h>
@ -209,6 +209,7 @@ getmsg(char *datafile_name, unsigned char *buf, int buflen, isc_buffer_t *pbuf)
else if (('A' <= c) && (c <= 'Z'))
val = c - 'A'+ 10;
else {
(void)fclose(fp);
t_info("Bad format in datafile\n");
return (0);
}
@ -222,6 +223,7 @@ getmsg(char *datafile_name, unsigned char *buf, int buflen, isc_buffer_t *pbuf)
/*
* Buffer too small.
*/
(void)fclose(fp);
t_info("Buffer overflow error\n");
return (0);
}