Autobuild-User: Volker Lendecke <vl@samba.org>
Autobuild-Date: Sat Apr 28 23:38:45 CEST 2012 on sn-devel-104
* if not we have a bug in the code!
*
*/
- SMB_ASSERT(state->res_names->count == state->num_sids);
+ if (state->res_names->count != state->num_sids) {
+ DEBUG(0, ("res_names->count = %d, expected %d\n",
+ state->res_names->count, state->num_sids));
+ return NT_STATUS_INTERNAL_ERROR;
+ }
/*
* Not strictly needed, but it might make debugging in the callers