From: Roy Marples Date: Sun, 13 Sep 2015 09:32:20 +0000 (+0000) Subject: Add an assert here as it's currently failing when moving a lease from one interface... X-Git-Tag: v6.9.4~47 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e03e503526c8a4c7f340182d48938409b9f4e3e6;p=thirdparty%2Fdhcpcd.git Add an assert here as it's currently failing when moving a lease from one interface to another. --- diff --git a/dhcp.c b/dhcp.c index c4451f92..3467a68e 100644 --- a/dhcp.c +++ b/dhcp.c @@ -40,6 +40,7 @@ #include #undef __FAVOR_BSD +#include #include #include #include @@ -1391,6 +1392,8 @@ get_lease(struct dhcpcd_ctx *ctx, struct dhcp_lease *lease, const struct dhcp_message *dhcp) { + assert(dhcp != NULL); + lease->cookie = dhcp->cookie; /* BOOTP does not set yiaddr for replies when ciaddr is set. */ if (dhcp->yiaddr)