mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
2300. [bug] Fixed failure to close open file in
bin/tests/names/t_names.c. [RT #17473]
This commit is contained in:
parent
bd97dba011
commit
80f20cb452
2 changed files with 6 additions and 1 deletions
3
CHANGES
3
CHANGES
|
|
@ -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]
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue