Prevent infinite loop loading config files.
authorDavid Lloyd <david.lloyd@fsmail.net>
Mon, 7 Jul 2014 12:11:48 +0000 (13:11 +0100)
committerDr. Stephen Henson <steve@openssl.org>
Mon, 7 Jul 2014 12:54:11 +0000 (13:54 +0100)
PR#2985
(cherry picked from commit 9d23f422a32cb333a5e803199ae230706b1bf9f5)

crypto/conf/conf_def.c

index cf951320af8ee344e60d4fd863be34dc3cebce8c..f0b27687395f5b4ab38c3f8b491921d8b3dedbe6 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;