diff options
| author | Roy Marples <roy@marples.name> | 2009-04-27 14:00:39 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2009-04-27 14:00:39 +0000 |
| commit | 3949692e4d9061acb8cebcd002e2829dd085eaf5 (patch) | |
| tree | 9cd8395c940277b4543ca76b72f7953e9d08cd2b /dhcpcd.c | |
| parent | 075c98728215caccf4e408fbbf6bd95f66607f3b (diff) | |
| download | dhcpcd-3949692e4d9061acb8cebcd002e2829dd085eaf5.tar.xz | |
Fix existing address detection.
Diffstat (limited to 'dhcpcd.c')
| -rw-r--r-- | dhcpcd.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -562,7 +562,7 @@ handle_dhcp(struct interface *iface, struct dhcp_message **dhcpp) /* If the interface already has the address configured * then we can't ARP for duplicate detection. */ addr.s_addr = state->offer->yiaddr; - if (!has_address(iface->name, &addr, NULL)) { + if (has_address(iface->name, &addr, NULL) != 1) { state->claims = 0; state->probes = 0; state->conflicts = 0; |
