0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-29 02:02:38 +01:00

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_ORPHANED;
entry->ownerdata = NULL;
}
}