Blame SOURCES/dnsmasq-2.66-Fix-option-parsing-for-dhcp-host.patch

cab8d5
From 3e8ed78bf1b2649b13129327700d5d55bd2040e2 Mon Sep 17 00:00:00 2001
cab8d5
From: Simon Kelley <simon@thekelleys.org.uk>
cab8d5
Date: Wed, 29 May 2013 14:31:33 +0100
cab8d5
Subject: [PATCH 1/1] Fix option parsing for --dhcp-host.
cab8d5
cab8d5
---
cab8d5
 src/option.c |    4 ++--
cab8d5
 1 file changed, 2 insertions(+), 2 deletions(-)
cab8d5
cab8d5
diff --git a/src/option.c b/src/option.c
cab8d5
index eb71102..ac54c31 100644
cab8d5
--- a/src/option.c
cab8d5
+++ b/src/option.c
cab8d5
@@ -2510,7 +2510,7 @@ static int one_opt(int option, char *arg, char *errstr, char *gen_err, int comma
cab8d5
     case 'G':  /* --dhcp-host */
cab8d5
       {
cab8d5
 	int j, k = 0;
cab8d5
-	char *a[6] = { NULL, NULL, NULL, NULL, NULL, NULL };
cab8d5
+	char *a[7] = { NULL, NULL, NULL, NULL, NULL, NULL, NULL };
cab8d5
 	struct dhcp_config *new;
cab8d5
 	struct in_addr in;
cab8d5
 	
cab8d5
@@ -2522,7 +2522,7 @@ static int one_opt(int option, char *arg, char *errstr, char *gen_err, int comma
cab8d5
 	new->netid = NULL;
cab8d5
 
cab8d5
 	if ((a[0] = arg))
cab8d5
-	  for (k = 1; k < 6; k++)
cab8d5
+	  for (k = 1; k < 7; k++)
cab8d5
 	    if (!(a[k] = split(a[k-1])))
cab8d5
 	      break;
cab8d5
 	
cab8d5
-- 
cab8d5
1.7.2.5
cab8d5