s3: Remove a SMB_ASSERT
authorVolker Lendecke <vl@samba.org>
Sat, 28 Apr 2012 17:55:31 +0000 (19:55 +0200)
committerVolker Lendecke <vl@samba.org>
Sat, 28 Apr 2012 21:38:45 +0000 (23:38 +0200)
Autobuild-User: Volker Lendecke <vl@samba.org>
Autobuild-Date: Sat Apr 28 23:38:45 CEST 2012 on sn-devel-104

source3/winbindd/wb_lookupsids.c

index ae815ce067244bee7048d56c609c0e8457ef4ba6..b050bd069881c483da71cdaeef45d09a1fa43c96 100644 (file)
@@ -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