mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 09:17:52 +03:00
security: Need to initialize 'sens'
It was possible to call VIR_FREE in cleanup prior to initialization
This commit is contained in:
parent
8363dbaea3
commit
770b4aa8f0
@ -110,7 +110,7 @@ virSecuritySELinuxMCSFind(virSecurityManagerPtr mgr)
|
|||||||
char *mcs = NULL;
|
char *mcs = NULL;
|
||||||
security_context_t ourSecContext = NULL;
|
security_context_t ourSecContext = NULL;
|
||||||
context_t ourContext = NULL;
|
context_t ourContext = NULL;
|
||||||
char *sens, *cat, *tmp;
|
char *sens = NULL, *cat, *tmp;
|
||||||
int catMin, catMax, catRange;
|
int catMin, catMax, catRange;
|
||||||
|
|
||||||
if (getcon_raw(&ourSecContext) < 0) {
|
if (getcon_raw(&ourSecContext) < 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user