From: Andrew Walker Date: Tue, 6 Sep 2022 20:45:58 +0000 (-0400) Subject: s3:modules - fix read of uninitialized memory X-Git-Tag: talloc-2.4.0~1132 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c2e235efd402719f963b0147f795aacf86878bd7;p=thirdparty%2Fsamba.git s3:modules - fix read of uninitialized memory For loop accesses entry->next after entry has been removed from list in glfs_clear_preopened(). Signed-off-by: Andrew Walker Reviewed-by: Jeremy Allison Autobuild-User(master): Jeremy Allison Autobuild-Date(master): Wed Sep 7 19:40:17 UTC 2022 on sn-devel-184 --- diff --git a/source3/modules/vfs_glusterfs.c b/source3/modules/vfs_glusterfs.c index e2f9fbd8bd4..ffbe0f414ae 100644 --- a/source3/modules/vfs_glusterfs.c +++ b/source3/modules/vfs_glusterfs.c @@ -151,6 +151,7 @@ static void glfs_clear_preopened(glfs_t *fs) glfs_fini(entry->fs); talloc_free(entry); + break; } } }