changeset 1825:56d1e1a01918 draft dhcpcd-5.6.7

Fix potential issue if we don't want routes and we fail a decode.
author Roy Marples <roy@marples.name>
date Mon, 28 Jan 2013 09:54:03 +0000
parents 506ac030b6c1
children 3190339ecb13
files dhcp.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/dhcp.c	Mon Jan 28 09:48:14 2013 +0000
+++ b/dhcp.c	Mon Jan 28 09:54:03 2013 +0000
@@ -822,6 +822,8 @@
 	/* 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) {