提交 770b4aa8 编写于 作者: J John Ferlan 提交者: Peter Krempa

security: Need to initialize 'sens'

It was possible to call VIR_FREE in cleanup prior to initialization
上级 8363dbae
......@@ -110,7 +110,7 @@ virSecuritySELinuxMCSFind(virSecurityManagerPtr mgr)
char *mcs = NULL;
security_context_t ourSecContext = NULL;
context_t ourContext = NULL;
char *sens, *cat, *tmp;
char *sens = NULL, *cat, *tmp;
int catMin, catMax, catRange;
if (getcon_raw(&ourSecContext) < 0) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册