s3-registry: Check return code of push_reg_sz().
[kai/samba.git] / source3 / winbindd / wb_lookupuseraliases.c
index f6fe855a856965c84a582a73ce936feab0b9d17e..5e7eb1c33c2dbc03bb7dda5d6c750bd50a9cf952 100644 (file)
@@ -44,7 +44,7 @@ struct tevent_req *wb_lookupuseraliases_send(TALLOC_CTX *mem_ctx,
                return NULL;
        }
        state->sids.num_sids = num_sids;
-       state->sids.sids = CONST_DISCARD(struct dom_sid *, sids);
+       state->sids.sids = discard_const_p(struct dom_sid, sids);
 
        subreq = dcerpc_wbint_LookupUserAliases_send(
                state, ev, dom_child_handle(domain), &state->sids, &state->rids);