]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
A server should not NAK an INFORM.
authorRoy Marples <roy@marples.name>
Fri, 12 Dec 2014 21:52:16 +0000 (21:52 +0000)
committerRoy Marples <roy@marples.name>
Fri, 12 Dec 2014 21:52:16 +0000 (21:52 +0000)
dhcp.c

diff --git a/dhcp.c b/dhcp.c
index 7ac49be1a5ba0219c60dfe427064ecc0ba12d9e3..3f43c49f1f6da756142e9001ca6a58e4b5530f12 100644 (file)
--- a/dhcp.c
+++ b/dhcp.c
@@ -2502,6 +2502,8 @@ dhcp_handledhcp(struct interface *iface, struct dhcp_message **dhcpp,
                            iface->name, msg);
                        free(msg);
                }
+               if (state->state == DHS_INFORM) /* INFORM should not be NAKed */
+                       return;
                if (!(iface->ctx->options & DHCPCD_TEST)) {
                        dhcp_drop(iface, "NAK");
                        unlink(state->leasefile);