dhcpv6: send relay-forward messages using correct socket
authorSteven Barth <steven@midlink.org>
Fri, 17 Jul 2015 08:46:07 +0000 (10:46 +0200)
committerSteven Barth <steven@midlink.org>
Fri, 17 Jul 2015 08:46:07 +0000 (10:46 +0200)
src/dhcpv6.c

index 7302d5d989018dd0908a33e17209461cdcc1129d..7442b2d9d6d0061eaf6cc2b34dcafeb037caf8eb 100644 (file)
@@ -532,5 +532,5 @@ static void relay_client_request(struct sockaddr_in6 *source,
        struct sockaddr_in6 dhcpv6_servers = {AF_INET6,
                        htons(DHCPV6_SERVER_PORT), 0, ALL_DHCPV6_SERVERS, 0};
        struct iovec iov[2] = {{&hdr, sizeof(hdr)}, {(void*)data, len}};
-       odhcpd_send(iface->dhcpv6_event.uloop.fd, &dhcpv6_servers, iov, 2, master);
+       odhcpd_send(master->dhcpv6_event.uloop.fd, &dhcpv6_servers, iov, 2, master);
 }