summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-06-18 21:34:01 +0000
committerJeremy Allison <jra@samba.org>2001-06-18 21:34:01 +0000
commit48a5c872402e5c445858dd4054571ca0fada11c4 (patch)
treed477ca0565453210d2511b7ccb502c91bbf10e4d /source3/rpc_server
parent809c0258780cc75cd456518571891fc30998d30d (diff)
downloadsamba-48a5c872402e5c445858dd4054571ca0fada11c4.tar.gz
samba-48a5c872402e5c445858dd4054571ca0fada11c4.tar.bz2
samba-48a5c872402e5c445858dd4054571ca0fada11c4.zip
Fix for assert fail - left over when moved to dynamic allocation.
Jeremy. (This used to be commit 0fcf2006334bd41d4036e703a6725aaaf684e008)
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/srv_samr_nt.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source3/rpc_server/srv_samr_nt.c b/source3/rpc_server/srv_samr_nt.c
index 1db69716be..0a82c90a1d 100644
--- a/source3/rpc_server/srv_samr_nt.c
+++ b/source3/rpc_server/srv_samr_nt.c
@@ -1219,7 +1219,7 @@ uint32 _samr_lookup_names(pipes_struct *p, SAMR_Q_LOOKUP_NAMES *q_u, SAMR_R_LOOK
uint32 rid[MAX_SAM_ENTRIES];
enum SID_NAME_USE type[MAX_SAM_ENTRIES];
int i;
- int num_rids = q_u->num_names1;
+ int num_rids = q_u->num_names2;
DOM_SID pol_sid;
r_u->status = NT_STATUS_NOPROBLEMO;
@@ -1239,8 +1239,6 @@ uint32 _samr_lookup_names(pipes_struct *p, SAMR_Q_LOOKUP_NAMES *q_u, SAMR_R_LOOK
DEBUG(5,("_samr_lookup_names: truncating entries to %d\n", num_rids));
}
- SMB_ASSERT_ARRAY(q_u->uni_name, num_rids);
-
for (i = 0; i < num_rids; i++) {
fstring name;