From: David Lloyd Date: Mon, 7 Jul 2014 12:11:48 +0000 (+0100) Subject: Prevent infinite loop loading config files. X-Git-Tag: OpenSSL_1_0_0n~32 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=08191301886bde8842504d99ab4750efbecf2c35;p=oweals%2Fopenssl.git Prevent infinite loop loading config files. PR#2985 (cherry picked from commit 9d23f422a32cb333a5e803199ae230706b1bf9f5) --- diff --git a/crypto/conf/conf_def.c b/crypto/conf/conf_def.c index cf951320af..f0b2768739 100644 --- a/crypto/conf/conf_def.c +++ b/crypto/conf/conf_def.c @@ -321,7 +321,7 @@ again: p=eat_ws(conf, end); if (*p != ']') { - if (*p != '\0') + if (*p != '\0' && ss != p) { ss=p; goto again;