Prevent infinite loop loading config files.

PR#2985
(cherry picked from commit 9d23f422a3)
This commit is contained in:
David Lloyd
2014-07-07 13:11:48 +01:00
committed by Dr. Stephen Henson
parent a07f514fc0
commit 00032b0ba1

View File

@@ -321,7 +321,7 @@ again:
p=eat_ws(conf, end); p=eat_ws(conf, end);
if (*p != ']') if (*p != ']')
{ {
if (*p != '\0') if (*p != '\0' && ss != p)
{ {
ss=p; ss=p;
goto again; goto again;