|
From: <ssm...@us...> - 2007-04-12 18:49:54
|
Revision: 2345
http://svn.sourceforge.net/selinux/?rev=2345&view=rev
Author: ssmalley
Date: 2007-04-12 11:49:48 -0700 (Thu, 12 Apr 2007)
Log Message:
-----------
Ported r2319 (libselinux: handle null SIDs in sidput) from trunk.
Modified Paths:
--------------
branches/stable/1_0/libselinux/src/avc.c
Modified: branches/stable/1_0/libselinux/src/avc.c
===================================================================
--- branches/stable/1_0/libselinux/src/avc.c 2007-04-12 18:43:58 UTC (rev 2344)
+++ branches/stable/1_0/libselinux/src/avc.c 2007-04-12 18:49:48 UTC (rev 2345)
@@ -272,6 +272,8 @@
int sidput(security_id_t sid)
{
int rc;
+ if (!sid)
+ return 0;
avc_get_lock(avc_lock);
rc = sid_dec_refcnt(sid);
avc_release_lock(avc_lock);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|