From 04f101c699a0e2b0910fc1ff2006917b00c64895 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nils=20O=2E=20Sel=C3=A5sdal?= Date: Tue, 26 Nov 2013 23:58:50 +0100 Subject: [PATCH] initialize peer to Unknown --- test/udp_heartbeat.c | 1 + 1 file changed, 1 insertion(+) diff --git a/test/udp_heartbeat.c b/test/udp_heartbeat.c index 4eb3847..f964bca 100644 --- a/test/udp_heartbeat.c +++ b/test/udp_heartbeat.c @@ -102,6 +102,7 @@ void peer_add_addr(struct HBContext *ctx, const struct sockaddr_in *addr) peer->timer.callback = peer_timer_cb; peer->timer.cookie_ptr = ctx; + peer->state = PeerUnknown; sec = rand() % PEER_HB_SEC; usec = rand() % 1000000;