Spaces in CNAME options break parsing.

cname = wibble,wobble

works, but

cname =	wibble, wobble

fails. Bug introduced in 2.77. commit a1d973f987
This commit is contained in:
Simon Kelley
2017-10-09 22:36:11 +01:00
parent 30df7efc96
commit 30858e3b9b
2 changed files with 6 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
version 2.79
Fix parsing of CNAME arguments, which are confused by extra spaces.
Thanks to Diego Aguirre for spotting the bug.
version 2.78 version 2.78
Fix logic of appending ".<layer>" to PXE basename. Thanks to Chris Fix logic of appending ".<layer>" to PXE basename. Thanks to Chris
Novakovic for the patch. Novakovic for the patch.

View File

@@ -3862,7 +3862,7 @@ err:
new->target = target; new->target = target;
new->ttl = ttl; new->ttl = ttl;
arg += strlen(arg)+1; for (arg += strlen(arg)+1; *arg == ' '; arg++);
} }
break; break;