]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Fix test, thanks to Olaf Westrik.
authorRoy Marples <roy@marples.name>
Fri, 13 Feb 2015 12:22:05 +0000 (12:22 +0000)
committerRoy Marples <roy@marples.name>
Fri, 13 Feb 2015 12:22:05 +0000 (12:22 +0000)
dhcp.c

diff --git a/dhcp.c b/dhcp.c
index 2d3f6801a52c3b6e0f43d2942ce69816b9617f6e..d6d8b40e9f29011d6d43ce148cbd189c1c606ffb 100644 (file)
--- a/dhcp.c
+++ b/dhcp.c
@@ -1909,7 +1909,7 @@ dhcp_bind(struct interface *ifp, struct arp_state *astate)
                return;
        }
        if (state->reason == NULL) {
-               if (state->old && !(state->added | STATE_FAKE)) {
+               if (state->old && !(state->added & STATE_FAKE)) {
                        if (state->old->yiaddr == state->new->yiaddr &&
                            lease->server.s_addr)
                                state->reason = "RENEW";