capability: set ownerdata to NULL when orphaning

This commit is contained in:
William Pitcock 2016-02-28 19:15:04 -06:00
parent 6b23b98ab6
commit 2e4bf32f36

View file

@ -112,6 +112,7 @@ capability_orphan(struct CapabilityIndex *idx, const char *cap)
{ {
entry->flags &= ~CAP_REQUIRED; entry->flags &= ~CAP_REQUIRED;
entry->flags |= CAP_ORPHANED; entry->flags |= CAP_ORPHANED;
entry->ownerdata = NULL;
} }
} }