0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-07-05 01:58:35 +02: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;
}
}