]>
Commit | Line | Data |
---|---|---|
444c1184 MT |
1 | diff -up dhcp-4.2.4b1/client/dhclient.c.send_release dhcp-4.2.4b1/client/dhclient.c |
2 | --- dhcp-4.2.4b1/client/dhclient.c.send_release 2012-04-16 17:48:52.000000000 +0200 | |
3 | +++ dhcp-4.2.4b1/client/dhclient.c 2012-04-16 17:50:44.357396720 +0200 | |
4 | @@ -2764,8 +2764,8 @@ void send_release (cpp) | |
5 | inet_ntoa (destination.sin_addr), | |
6 | ntohs (destination.sin_port), client -> xid); | |
7 | ||
8 | - if (fallback_interface) { | |
9 | - result = send_packet(fallback_interface, NULL, &client->packet, | |
10 | + if (client -> interface) { | |
11 | + result = send_packet(client -> interface, NULL, &client->packet, | |
12 | client->packet_length, from, &destination, | |
13 | NULL); | |
14 | if (result < 0) { | |
15 | @@ -2776,7 +2776,7 @@ void send_release (cpp) | |
16 | } | |
17 | } else { | |
18 | /* Send out a packet. */ | |
19 | - result = send_packet(client->interface, NULL, &client->packet, | |
20 | + result = send_packet(fallback_interface, NULL, &client->packet, | |
21 | client->packet_length, from, &destination, | |
22 | NULL); | |
23 | if (result < 0) { |