]> jfr.im git - solanum.git/blobdiff - ircd/capability.c
Resolve shfit/reduce conflict in timespec production (#54)
[solanum.git] / ircd / capability.c
index f82821d9a027db90fc112dfc38f21f69e46295da..e82143e5efd13825f97b3c0893915f0778e99a12 100644 (file)
@@ -67,6 +67,11 @@ capability_put(struct CapabilityIndex *idx, const char *cap, void *ownerdata)
        if ((entry = rb_dictionary_retrieve(idx->cap_dict, cap)) != NULL)
        {
                entry->flags &= ~CAP_ORPHANED;
+               if (ownerdata != NULL)
+               {
+                       s_assert(entry->ownerdata == NULL);
+                       entry->ownerdata = ownerdata;
+               }
                return (1 << entry->value);
        }