* rc_io.c (krb5_rc_io_open_internal): If file could not be open,
do not invoke close negative argument.
Ticket: new
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16357
dc483132-0cff-0310-8789-
dd5450dbe970
+2004-05-24 Ezra Peisach <epeisach@mit.edu>
+
+ * rc_io.c (krb5_rc_io_open_internal): If file could not be open,
+ do not invoke close negative argument.
+
2004-05-03 Kenneth Raeburn <raeburn@mit.edu>
* rc_dfl.c (krb5_rc_dfl_expunge_locked): Declare before use.
FREE(d->fn);
d->fn = NULL;
}
- (void) close(d->fd);
+ if (d->fd >= 0)
+ (void) close(d->fd);
}
return retval;
}