check return value of host.update_diff_validator()

fixes CID 27961 found by Coverity
This commit is contained in:
Christian Beer 2015-10-28 14:41:09 +01:00
parent 788745db0b
commit 6c10091740
1 changed files with 6 additions and 0 deletions

View File

@ -583,6 +583,12 @@ int handle_wu(
}
if (update_host) {
retval = host.update_diff_validator(host_initial);
if (retval) {
log_messages.printf(MSG_CRITICAL,
"[HOST#%lu] host.update_diff_validator() failed: %s\n",
host.id, boincerror(retval)
);
}
}
if (update_result) {
retval = validator.update_result(result);