diff options
author | Adam Langley <agl@chromium.org> | 2014-07-25 05:04:02 +0400 |
---|---|---|
committer | Adam Langley <agl@chromium.org> | 2014-07-29 04:05:13 +0400 |
commit | c82087b31fdba0e6b51f2d176bbb2a6805689afb (patch) | |
tree | a4d754245a9542f7d2dec81b702c5e31f33185f0 /crypto/conf | |
parent | 887b1c3d492bdbfffc5d7c11bc50887c37a98733 (diff) |
Prevent infinite loop loading config files.
PR#2985
(Imported from upstream's 2cb761c1f4e0155743f4414932b5cff167389cf4)
Change-Id: I3e4f3c0c558dd2e1cc5ed2df1651834018627342
Diffstat (limited to 'crypto/conf')
-rw-r--r-- | crypto/conf/conf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/conf/conf.c b/crypto/conf/conf.c index 898a9ba2..1630c933 100644 --- a/crypto/conf/conf.c +++ b/crypto/conf/conf.c @@ -583,7 +583,7 @@ static int def_load_bio(CONF *conf, BIO *in, long *out_error_line) { 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; } |