Commit 80f20cb4 authored by Mark Andrews's avatar Mark Andrews
Browse files

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

                        bin/tests/names/t_names.c. [RT #17473]
parent bd97dba0
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]
......
......@@ -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);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment