From 479998d76f805c02e041adb209857d4ca6b3f87f Mon Sep 17 00:00:00 2001 From: OpenGnSys Support Team Date: Thu, 31 Oct 2024 00:27:57 +0100 Subject: src: add last client command context and use it for image creation Add last client command context that is used in the request to client. This allows to remove the stub image entry in the database in case that the image creation fails. --- src/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core.c') diff --git a/src/core.c b/src/core.c index 759e923..02d4280 100644 --- a/src/core.c +++ b/src/core.c @@ -281,7 +281,7 @@ static void og_agent_send_refresh(struct og_client *cli) params.ips_array[0] = inet_ntoa(cli->addr.sin_addr); params.ips_array_len = 1; - og_send_request(OG_METHOD_GET, OG_CMD_REFRESH, ¶ms, NULL); + og_send_request(OG_METHOD_GET, OG_CMD_REFRESH, ¶ms, NULL, NULL); } /* Shut down connection if there is no complete message after 10 seconds. */ -- cgit v1.2.3-18-g5258