diff options
author | Stefan Metzmacher <metze@samba.org> | 2005-10-18 14:58:51 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:44:54 -0500 |
commit | 64b0c02e8b374e1fef5e580e622b976879a63b9a (patch) | |
tree | a734fa5ac0fd9d6fde18822a6a86b1f5d45b53e8 /source4/torture/nbt/winsreplication.c | |
parent | abe4ee3d432305312aa02377a92efcf66eb16431 (diff) | |
download | samba-64b0c02e8b374e1fef5e580e622b976879a63b9a.tar.gz samba-64b0c02e8b374e1fef5e580e622b976879a63b9a.tar.bz2 samba-64b0c02e8b374e1fef5e580e622b976879a63b9a.zip |
r11146: make sure we get the expected amount of addresses
metze
(This used to be commit 9903a47151a96177e835ba45450ad12a2e969ee2)
Diffstat (limited to 'source4/torture/nbt/winsreplication.c')
-rw-r--r-- | source4/torture/nbt/winsreplication.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source4/torture/nbt/winsreplication.c b/source4/torture/nbt/winsreplication.c index 3cdd84e5f1..c771fc52ee 100644 --- a/source4/torture/nbt/winsreplication.c +++ b/source4/torture/nbt/winsreplication.c @@ -529,6 +529,15 @@ static BOOL test_wrepl_is_applied(struct test_wrepl_conflict_conn *ctx, 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); |