ipropd_master: fix dump bug

This commit is contained in:
Nicolas Williams
2015-05-27 18:32:26 -05:00
parent 96859fe687
commit d1fcf3dc67

View File

@@ -493,8 +493,7 @@ send_complete (krb5_context context, slave *s, const char *database,
goto done; goto done;
} }
krb5_storage_seek(dump, 0, SEEK_SET); if (krb5_storage_seek(dump, 0, SEEK_SET) == (off_t)-1) {
if (ret == -1) {
ret = errno; ret = errno;
krb5_warn(context, ret, "krb5_storage_seek(dump, 0, SEEK_SET)"); krb5_warn(context, ret, "krb5_storage_seek(dump, 0, SEEK_SET)");
goto done; goto done;
@@ -512,7 +511,7 @@ send_complete (krb5_context context, slave *s, const char *database,
* break out of the loop and send the file below. * break out of the loop and send the file below.
*/ */
if (vno >= oldest_version) if (ret == 0 && vno >= oldest_version && vno <= current_version)
break; break;
/* /*