Author: metze
Date: 2005-10-18 14:58:51 +0000 (Tue, 18 Oct 2005)
New Revision: 11146

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=11146

Log:
make sure we get the expected amount of addresses

metze
Modified:
   branches/SAMBA_4_0/source/torture/nbt/winsreplication.c


Changeset:
Modified: branches/SAMBA_4_0/source/torture/nbt/winsreplication.c
===================================================================
--- branches/SAMBA_4_0/source/torture/nbt/winsreplication.c     2005-10-18 
14:54:56 UTC (rev 11145)
+++ branches/SAMBA_4_0/source/torture/nbt/winsreplication.c     2005-10-18 
14:58:51 UTC (rev 11146)
@@ -529,6 +529,15 @@
                CHECK_VALUE_STRING(names[0].name.scope, name->name->scope);
                CHECK_VALUE(flags, name->flags);
                CHECK_VALUE_UINT64(names[0].version_id, name->id);
+
+               if (flags & 2) {
+                       CHECK_VALUE(names[0].num_addresses,
+                                   name->addresses.addresses.num_ips);
+               } else {
+                       CHECK_VALUE(names[0].num_addresses, 1);
+                       CHECK_VALUE_STRING(names[0].addresses[0].address,
+                                          name->addresses.ip);
+               }
        }
 done:
        talloc_free(pull_names.out.names);

Reply via email to