Prevent infinite loop loading config files.
authorDavid Lloyd <david.lloyd@fsmail.net>
Mon, 7 Jul 2014 12:11:48 +0000 (13:11 +0100)
committerJanusz Kozerski <j.kozerski@samsung.com>
Mon, 20 Oct 2014 13:25:30 +0000 (15:25 +0200)
PR#2985
(cherry picked from commit 9d23f422a32cb333a5e803199ae230706b1bf9f5)

crypto/conf/conf_def.c

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