X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=acl.c;h=81ac25599b5dfd24e0091e47c4983211f46cd6cc;hb=bd019b735ac422bf9a40e1865e3d59f2e128604f;hp=0654f38f72775dae42cfa2a12eeace75cf370067;hpb=f1a7104a5f435a1bf2a1158e6f737dbd89e8c153;p=qemu.git diff --git a/acl.c b/acl.c index 0654f38f7..81ac25599 100644 --- a/acl.c +++ b/acl.c @@ -24,7 +24,7 @@ #include "qemu-common.h" -#include "acl.h" +#include "qemu/acl.h" #ifdef CONFIG_FNMATCH #include @@ -95,13 +95,13 @@ int qemu_acl_party_is_allowed(qemu_acl *acl, void qemu_acl_reset(qemu_acl *acl) { - qemu_acl_entry *entry; + qemu_acl_entry *entry, *next_entry; /* Put back to deny by default, so there is no window * of "open access" while the user re-initializes the * access control list */ acl->defaultDeny = 1; - QTAILQ_FOREACH(entry, &acl->entries, next) { + QTAILQ_FOREACH_SAFE(entry, &acl->entries, next, next_entry) { QTAILQ_REMOVE(&acl->entries, entry, next); free(entry->match); free(entry);