svn rev #22282: trunk/src/lib/krb5/keytab/
ghudson@MIT.EDU
ghudson at MIT.EDU
Mon Apr 27 19:01:09 EDT 2009
http://src.mit.edu/fisheye/changelog/krb5/?cs=22282
Commit By: ghudson
Log Message:
Fix an unchecked use of fwrite in krb5_ktfileint_delete_entry.
Changed Files:
U trunk/src/lib/krb5/keytab/kt_file.c
Modified: trunk/src/lib/krb5/keytab/kt_file.c
===================================================================
--- trunk/src/lib/krb5/keytab/kt_file.c 2009-04-27 15:42:23 UTC (rev 22281)
+++ trunk/src/lib/krb5/keytab/kt_file.c 2009-04-27 23:01:08 UTC (rev 22282)
@@ -1225,7 +1225,9 @@
memset(iobuf, 0, (size_t) len);
while (size > 0) {
- fwrite(iobuf, 1, (size_t) len, KTFILEP(id));
+ if (!fwrite(iobuf, 1, (size_t) len, KTFILEP(id))) {
+ return KRB5_KT_IOERR;
+ }
size -= len;
if (size < len) {
len = size;
More information about the cvs-krb5
mailing list