Commit c23c15d3 authored by Markus Armbruster's avatar Markus Armbruster Committed by Anthony Liguori
Browse files

acl: Fix acl_remove not to mess up the ACL

It leaks memory and fails to adjust qemu_acl member nentries.  Future
acl_add become confused: can misreport the position, and can silently
fail to add.

Signed-off-by: default avatarMarkus Armbruster <>
Signed-off-by: default avatarAnthony Liguori <>
parent cc69bda6
......@@ -168,6 +168,9 @@ int qemu_acl_remove(qemu_acl *acl,
if (strcmp(entry->match, match) == 0) {
QTAILQ_REMOVE(&acl->entries, entry, next);
return i;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment