r13080: fix crash bug
[jra/samba/.git] / source / 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;
                }
        }