r13080: fix crash bug
authorStefan Metzmacher <metze@samba.org>
Mon, 23 Jan 2006 12:55:22 +0000 (12:55 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:51:23 +0000 (13:51 -0500)
metze
(This used to be commit 0372438000dec9640a2888d44c3114c18ec625ab)

source4/wrepl_server/wrepl_scavenging.c

index a11dae7a0679bf43b62d827a05818b6a5facc1c3..a251fcba52dc68bcbf6caaee8ecf0b13653426e5 100644 (file)
@@ -323,7 +323,7 @@ static void verify_handler(struct irpc_request *ireq)
                        }
                }
        } else if (NT_STATUS_IS_OK(status) && rec->type == WREPL_TYPE_GROUP) {
-               if (s->r.out.num_addrs != 1 || strcmp(s->r.out.addrs[i].addr, "255.255.255.255") != 0) {
+               if (s->r.out.num_addrs != 1 || strcmp(s->r.out.addrs[0].addr, "255.255.255.255") != 0) {
                        different = True;
                }
        }