svn commit: samba r22538 - in
branches/SAMBA_4_0/source/torture/rpc: .
metze at samba.org
metze at samba.org
Fri Apr 27 17:35:17 GMT 2007
Author: metze
Date: 2007-04-27 17:35:15 +0000 (Fri, 27 Apr 2007)
New Revision: 22538
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=22538
Log:
same day late at night in au...:-)
fix the strcasecmp_m() returns 0 for a match
also use the correct array element to fill priv->dcinfo
the fixes the problems where ldb changes the order of the search results
when changing the main dc netbios name from "localhost" to "localtest"
metze
Modified:
branches/SAMBA_4_0/source/torture/rpc/drsuapi.c
Changeset:
Modified: branches/SAMBA_4_0/source/torture/rpc/drsuapi.c
===================================================================
--- branches/SAMBA_4_0/source/torture/rpc/drsuapi.c 2007-04-27 15:26:40 UTC (rev 22537)
+++ branches/SAMBA_4_0/source/torture/rpc/drsuapi.c 2007-04-27 17:35:15 UTC (rev 22538)
@@ -139,19 +139,18 @@
case 1:
for (k=0; k < r.out.ctr.ctr1.count; k++) {
if (strcasecmp_m(r.out.ctr.ctr1.array[k].netbios_name,
- torture_join_netbios_name(priv->join))) {
+ torture_join_netbios_name(priv->join)) == 0) {
found = True;
+ break;
}
}
break;
case 2:
- if (r.out.ctr.ctr2.count > 0) {
- priv->dcinfo = r.out.ctr.ctr2.array[0];
- }
for (k=0; k < r.out.ctr.ctr2.count; k++) {
if (strcasecmp_m(r.out.ctr.ctr2.array[k].netbios_name,
- torture_join_netbios_name(priv->join))) {
+ torture_join_netbios_name(priv->join)) == 0) {
found = True;
+ priv->dcinfo = r.out.ctr.ctr2.array[k];
break;
}
}
More information about the samba-cvs
mailing list