Skip to content
Commit 668c0e44 authored by Kevin Wolf's avatar Kevin Wolf Committed by Jeff Cody
Browse files

gluster: Fix use after free in glfs_clear_preopened()



This fixes a use-after-free bug introduced in commit 6349c154. We need
to use QLIST_FOREACH_SAFE() when freeing elements in the loop. Spotted
by Coverity.

Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
Message-id: 1479378608-11962-1-git-send-email-kwolf@redhat.com
Signed-off-by: default avatarJeff Cody <jcody@redhat.com>
parent c36ed06e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment