From 306604b3a93e95b6146bf0cd75cf8c826d9ebd1c Mon Sep 17 00:00:00 2001
From: zhongtao <zhongtao17@huawei.com>
Date: Tue, 29 Aug 2023 13:18:34 +0000
Subject: [PATCH 127/145] !2157 bugfix for memset * bugfix for memset

---
 src/daemon/modules/image/image_rootfs_handler.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/daemon/modules/image/image_rootfs_handler.c b/src/daemon/modules/image/image_rootfs_handler.c
index 990c2720..915c8a33 100644
--- a/src/daemon/modules/image/image_rootfs_handler.c
+++ b/src/daemon/modules/image/image_rootfs_handler.c
@@ -137,7 +137,7 @@ static int proc_by_fpasswd(FILE *f_passwd, const char *user, defs_process_user *
 
 out:
     memset(buf, 0, sizeof(buf));
-    memset(pwbufp, 0, sizeof(struct passwd));
+    memset(&pw, 0, sizeof(struct passwd));
     return ret;
 }
 
-- 
2.40.1

