aboutsummaryrefslogtreecommitdiffstats
path: root/pingu_burst.c
diff options
context:
space:
mode:
Diffstat (limited to 'pingu_burst.c')
-rw-r--r--pingu_burst.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/pingu_burst.c b/pingu_burst.c
index 3c3fe5b..e09c1ce 100644
--- a/pingu_burst.c
+++ b/pingu_burst.c
@@ -38,7 +38,8 @@ void ping_burst_start(struct ev_loop *loop, struct pingu_host *host)
}
for (rp = ai; rp != NULL; rp = rp->ai_next) {
- host->burst.saddr = *ai->ai_addr;
+ sockaddr_init(&host->burst.saddr, ai->ai_family,
+ ai->ai_addr);
r = pingu_ping_send(loop, host, 0);
if (r == 0)
break;