Skip to contentSkip to conversation

libsemanage: deref and double close of fp

PATCH New Serge E. Hallyn 1 participant 1 message Jun 8, 2006 SELinux security module

lore
Share & tools
lore
#0 lore raw

PATCH 2/3 libsemanage: deref and double close of fp

Trivial patch to prevent double-closing of a file pointer.

thanks,
-serge

src/database_policydb.c renamed from src/database_policydb.c.orig +1 -0
@@ -156,6 +156,7 @@ static int dbase_policydb_cache(
 
 		sepol_policy_file_free(pf);
 		fclose(fp);
+		fp = NULL;
 	}
 
 	/* Update cache serial */

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.