mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-25 01:34:11 +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;
|
||||
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) {
|
||||
|
Loading…
Reference in New Issue
Block a user