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_2-beta2~32 X-Git-Url: https://git.openssl.org/gitweb/?a=commitdiff_plain;h=2cb761c1f4e0155743f4414932b5cff167389cf4;p=openssl.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;