From 455d2750fc183687c44be6da9c0682dceb3da72e Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Sun, 28 Feb 2016 19:15:13 -0600 Subject: [PATCH] cap: don't show orphaned capabilities --- modules/m_cap.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/m_cap.c b/modules/m_cap.c index 877653d7..167e22a9 100644 --- a/modules/m_cap.c +++ b/modules/m_cap.c @@ -64,6 +64,10 @@ clicap_visible(const struct CapabilityEntry *cap) { struct ClientCapability *clicap; + /* orphaned caps shouldn't be visible */ + if (cap->flags & CAP_ORPHANED) + return 0; + if (cap->ownerdata == NULL) return 1;