提交 fe94ee5d 编写于 作者: J Julio Faracco 提交者: John Ferlan

security: Fixing wrong label in virt-aa-helper.c.

There is an issue with a wrong label inside vah_add_path().
The compilation fails with the error:
make[3]: Entering directory '/tmp/libvirt/src'
  CC       security/virt_aa_helper-virt-aa-helper.o
security/virt-aa-helper.c: In function 'vah_add_path':
security/virt-aa-helper.c:769:9: error: label 'clean' used but not defined
         goto clean;

This patch moves 'clean' label to 'cleanup' label.
Signed-off-by: NJulio Faracco <jcfaracco@gmail.com>
上级 b3c1bcb9
......@@ -766,7 +766,7 @@ vah_add_path(virBufferPtr buf, const char *path, const char *perms, bool recursi
}
if (VIR_STRDUP_QUIET(perms_new, perms) < 0)
goto clean;
goto cleanup;
if (strchr(perms_new, 'w') != NULL) {
readonly = false;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册