svn rev #21982: trunk/src/lib/krb5/rcache/
ghudson@MIT.EDU
ghudson at MIT.EDU
Thu Feb 12 14:38:08 EST 2009
http://src.mit.edu/fisheye/changelog/krb5/?cs=21982
Commit By: ghudson
Log Message:
In krb5_rc_io_open_internal, d->fn is always set for the cleanup
handler, so do not check it.
Changed Files:
U trunk/src/lib/krb5/rcache/rc_io.c
Modified: trunk/src/lib/krb5/rcache/rc_io.c
===================================================================
--- trunk/src/lib/krb5/rcache/rc_io.c 2009-02-12 18:21:33 UTC (rev 21981)
+++ trunk/src/lib/krb5/rcache/rc_io.c 2009-02-12 19:38:08 UTC (rev 21982)
@@ -295,12 +295,10 @@
cleanup:
if (retval) {
- if (d->fn) {
- if (!do_not_unlink)
- (void) unlink(d->fn);
- free(d->fn);
- d->fn = NULL;
- }
+ if (!do_not_unlink)
+ (void) unlink(d->fn);
+ free(d->fn);
+ d->fn = NULL;
if (d->fd >= 0)
(void) close(d->fd);
}
More information about the cvs-krb5
mailing list