krb5_rc_io_open_internal on error will call close(-1)
authorEzra Peisach <epeisach@mit.edu>
Mon, 18 Dec 2006 11:26:59 +0000 (11:26 +0000)
committerEzra Peisach <epeisach@mit.edu>
Mon, 18 Dec 2006 11:26:59 +0000 (11:26 +0000)
commit45adade7736d99462e60694df87ba28eb5753b4f
tree69cde62a1a36f0410bbca4c7ebe51f3228e2c20d
parent13837d7af7682c0f59c9fc402870a875dded3285
krb5_rc_io_open_internal on error will call close(-1)

If there is an error in opening the replay cache - memory is freed, but
close() is invoked with -1 (failure from open()).  While technically,
close() will return EBADF in such a case, and nothing bad will happen,
valgrind picks up on this and provides an error...

ticket: new

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18961 dc483132-0cff-0310-8789-dd5450dbe970
src/lib/krb5/rcache/rc_io.c