2567. [bug] dst__privstruct_writefile() could miss write errors.

write_public_key() could miss write errors.
                        [RT #19360]
This commit is contained in:
Mark Andrews
2009-03-02 02:59:09 +00:00
parent df599f1aae
commit 7a193dfd57
2 changed files with 5 additions and 2 deletions

View File

@@ -1,4 +1,5 @@
2567. [bug] dst__privstruct_writefile() could miss write errors.
write_public_key() could miss write errors.
[RT #19360]
2564. [bug] Only take EDNS fallback steps when processing timeouts.

View File

@@ -18,7 +18,7 @@
/*%
* Principal Author: Brian Wellington
* $Id: dst_parse.c,v 1.1.6.9 2008/01/22 23:27:05 tbox Exp $
* $Id: dst_parse.c,v 1.1.6.10 2009/03/02 02:59:09 marka Exp $
*/
#include <config.h>
@@ -486,8 +486,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 */