From 5712e5199ec0231c241f0d0ca02f477d05892bb7 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 28 Apr 2012 19:55:31 +0200 Subject: s3: Remove a SMB_ASSERT Autobuild-User: Volker Lendecke Autobuild-Date: Sat Apr 28 23:38:45 CEST 2012 on sn-devel-104 --- source3/winbindd/wb_lookupsids.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'source3') diff --git a/source3/winbindd/wb_lookupsids.c b/source3/winbindd/wb_lookupsids.c index ae815ce067..b050bd0698 100644 --- a/source3/winbindd/wb_lookupsids.c +++ b/source3/winbindd/wb_lookupsids.c @@ -645,7 +645,11 @@ NTSTATUS wb_lookupsids_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx, * 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 -- cgit