Prevent infinite loop loading config files.

PR#2985

(Imported from upstream's 2cb761c1f4e0155743f4414932b5cff167389cf4)

Change-Id: I3e4f3c0c558dd2e1cc5ed2df1651834018627342
diff --git a/crypto/conf/conf.c b/crypto/conf/conf.c
index 898a9ba..1630c93 100644
--- a/crypto/conf/conf.c
+++ b/crypto/conf/conf.c
@@ -583,7 +583,7 @@
       end = eat_alpha_numeric(conf, ss);
       p = eat_ws(conf, end);
       if (*p != ']') {
-        if (*p != '\0') {
+        if (*p != '\0' && ss != p) {
           ss = p;
           goto again;
         }