]> xenbits.xensource.com Git - xen.git/commit
loadpolicy: only close polFd if it is valid
authorIan Campbell <ian.campbell@citrix.com>
Wed, 10 Feb 2016 16:32:39 +0000 (16:32 +0000)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Mon, 29 Feb 2016 15:48:49 +0000 (10:48 -0500)
commit95cb4bac96e95b4df2e63d5ee5ae5f080090e31e
treef4adcd416fcfa57950d4a70351e6f3e3c7500c76
parent1c3639323c270cbdbde1d7d4add582d8f8d2d5f2
loadpolicy: only close polFd if it is valid

It can be -1 at this point.

CID 1055562
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
tools/flask/utils/loadpolicy.c