diff --git a/lib/krb5/store_fd.c b/lib/krb5/store_fd.c index 32860794d..44cd73f74 100644 --- a/lib/krb5/store_fd.c +++ b/lib/krb5/store_fd.c @@ -80,7 +80,7 @@ fd_store(krb5_storage * sp, const void *data, size_t size) if (errno == EINTR) continue; else - return count; + return size - rem; } cbuf += count; rem -= count;