summaryrefslogtreecommitdiff
path: root/source4/torture
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2005-11-18 11:40:03 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:46:26 -0500
commit70a01587b918718ddcbc11d4a7412c53211f04b8 (patch)
treed276a5dd788099c7a9d5f0d1ea58eefac7ca8603 /source4/torture
parent4f10246cacf938ea2db4abc05c82afafff6983f1 (diff)
downloadsamba-70a01587b918718ddcbc11d4a7412c53211f04b8.tar.gz
samba-70a01587b918718ddcbc11d4a7412c53211f04b8.tar.bz2
samba-70a01587b918718ddcbc11d4a7412c53211f04b8.zip
r11779: fix crash bug
metze (This used to be commit b35e43a67b7b9ccb25c8f4ed62b8415e82aaf1c7)
Diffstat (limited to 'source4/torture')
-rw-r--r--source4/torture/nbt/winsreplication.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/torture/nbt/winsreplication.c b/source4/torture/nbt/winsreplication.c
index 617df5fa46..032983bcd1 100644
--- a/source4/torture/nbt/winsreplication.c
+++ b/source4/torture/nbt/winsreplication.c
@@ -8361,7 +8361,7 @@ static BOOL test_conflict_owned_active_vs_replica(struct test_wrepl_conflict_con
for (j=0; j < count; j++) {
struct nbt_name_socket *nbtsock = ctx->nbtsock;
- if (ctx->myaddr && strcmp(records[i].wins.ips[j].ip, ctx->myaddr2) == 0) {
+ if (ctx->myaddr2 && strcmp(records[i].wins.ips[j].ip, ctx->myaddr2) == 0) {
nbtsock = ctx->nbtsock2;
}