diff mbox series

[V2,6/7] hakbit: missing initialization of msg in postupdate

Message ID 20201026140342.147578-6-sbabic@denx.de
State Accepted
Headers show
Series [V2,1/7] downloader: drop unuseful marker when dwl is started | expand

Commit Message

Stefano Babic Oct. 26, 2020, 2:03 p.m. UTC
The postupdate command checks if there is an info message and sent it to
the progress interface (with a "DONE" status). The missing
initialisation causes garbage on the client because a valid info message
(length > 0) is detected.

Signed-off-by: Stefano Babic <sbabic@denx.de>
---
 suricatta/server_hawkbit.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/suricatta/server_hawkbit.c b/suricatta/server_hawkbit.c
index dbe18a0..42e8569 100644
--- a/suricatta/server_hawkbit.c
+++ b/suricatta/server_hawkbit.c
@@ -1415,6 +1415,7 @@  cleanup:
 	if (result == SERVER_OK) {
 		INFO("Update successful, executing post-update actions.");
 		ipc_message msg;
+		memset(&msg, 0, sizeof(msg));
 		if (ipc_postupdate(&msg) != 0) {
 			result = SERVER_EERR;
 		} else {