mirror of
https://github.com/samba-team/samba.git
synced 2025-09-09 01:44:21 +03:00
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 <awalker@ixsystems.com> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Wed Sep 7 19:40:17 UTC 2022 on sn-devel-184
This commit is contained in:
committed by
Jeremy Allison
parent
1dc8a996a3
commit
c2e235efd4
@@ -151,6 +151,7 @@ static void glfs_clear_preopened(glfs_t *fs)
|
|||||||
|
|
||||||
glfs_fini(entry->fs);
|
glfs_fini(entry->fs);
|
||||||
talloc_free(entry);
|
talloc_free(entry);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user