summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--dhcp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/dhcp.c b/dhcp.c
index 7b678d5a..6a08cf09 100644
--- a/dhcp.c
+++ b/dhcp.c
@@ -822,6 +822,8 @@ get_option_routes(struct interface *ifp, const struct dhcp_message *dhcp)
/* OK, get our static routes first. */
if (!has_option_mask(ifo->nomask, DHO_STATICROUTE))
p = get_option(dhcp, DHO_STATICROUTE, &len, NULL);
+ else
+ p = NULL;
if (p) {
e = p + len;
while (p < e) {