From 33f18a66f80aa68ce89b9eac1944ccf92e4de231 Mon Sep 17 00:00:00 2001 From: Hwankyu Jhun Date: Tue, 24 May 2022 09:51:52 +0900 Subject: [PATCH] Fix the wrong implementation of aul_set_auto_restart() The encoded bundle raw data has to be set to the local variable. Change-Id: I0182a465d67ab7ce6abae4c334d0aa714f585ff7 Signed-off-by: Hwankyu Jhun --- src/pkginfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pkginfo.c b/src/pkginfo.c index 8fb6c82..af57d43 100644 --- a/src/pkginfo.c +++ b/src/pkginfo.c @@ -634,7 +634,7 @@ API int aul_set_auto_restart(bundle *b) return AUL_R_EINVAL; } - bundle_add(b, AUL_K_RESTART_EXTRA, (const char *)raw); + bundle_add(kb, AUL_K_RESTART_EXTRA, (const char *)raw); bundle_free_encoded_rawdata(&raw); } ret = aul_sock_send_bundle(AUL_UTIL_PID, getuid(), -- 2.7.4