lib/krb5/fcache.c: fcc_store_cred() was using ret before setting it.

This commit is contained in:
Roland C. Dowdeswell
2016-11-08 17:10:35 -05:00
parent e40ef47b57
commit 37b987a848

View File

@@ -640,8 +640,8 @@ fcc_store_cred(krb5_context context,
if (close(fd) < 0) {
if (ret == 0) {
char buf[128];
rk_strerror_r(ret, buf, sizeof(buf));
ret = errno;
rk_strerror_r(ret, buf, sizeof(buf));
krb5_set_error_message(context, ret, N_("close %s: %s", ""),
FILENAME(id), buf);
}