mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 06:25:31 +00:00
2567. [bug] dst__privstruct_writefile() could miss write errors.
write_public_key() could miss write errors. dnssec-dsfromkey could miss write errors. [RT #19360]
This commit is contained in:
@@ -31,7 +31,7 @@
|
||||
|
||||
/*%
|
||||
* Principal Author: Brian Wellington
|
||||
* $Id: dst_parse.c,v 1.14 2008/03/31 23:47:11 tbox Exp $
|
||||
* $Id: dst_parse.c,v 1.15 2009/03/02 03:01:04 marka Exp $
|
||||
*/
|
||||
|
||||
#include <config.h>
|
||||
@@ -525,8 +525,10 @@ dst__privstruct_writefile(const dst_key_t *key, const dst_private_t *priv,
|
||||
fprintf(fp, "\n");
|
||||
}
|
||||
|
||||
fflush(fp);
|
||||
iret = ferror(fp) ? DST_R_WRITEERROR : ISC_R_SUCCESS;
|
||||
fclose(fp);
|
||||
return (ISC_R_SUCCESS);
|
||||
return (iret);
|
||||
}
|
||||
|
||||
/*! \file */
|
||||
|
Reference in New Issue
Block a user