client: log error on refresh

Report failure when trying to refresh client information.
master
OpenGnSys Support Team 2024-09-19 11:34:48 +02:00 committed by Alejandro Sirgo Rica
parent bdf4c60411
commit b74a05cf38
1 changed files with 2 additions and 0 deletions

View File

@ -881,6 +881,8 @@ static int og_resp_refresh(json_t *data, struct og_client *cli)
og_boot_entry_free(&boot_entry_list);
return 0;
err_out:
syslog(LOG_ERR, "Failed to refresh info from client %s\n",
inet_ntoa(cli->addr.sin_addr));
og_cache_image_free(&cache_list);
og_boot_entry_free(&boot_entry_list);
return -1;