diff options
author | Richard Levitte <levitte@openssl.org> | 2003-12-27 16:07:18 +0000 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2003-12-27 16:07:18 +0000 |
commit | 3e786f4b0d5df1956fe763ed68f1c8ce8519f0aa (patch) | |
tree | 730412ba1610b02892a6fd4077f0ffb9e8228f6a /crypto/threads | |
parent | 4b66e713de39a6f396b938c1a93983c0ba7cb45f (diff) |
Only use environment variables if uid and gid are the same as euid and egid.
This is part of a large change submitted by Markus Friedl <markus@openbsd.org>
Diffstat (limited to 'crypto/threads')
-rw-r--r-- | crypto/threads/mttest.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/threads/mttest.c b/crypto/threads/mttest.c index 54d598565d..7588966cb2 100644 --- a/crypto/threads/mttest.c +++ b/crypto/threads/mttest.c @@ -243,7 +243,8 @@ bad: goto end; } - if (cipher == NULL) cipher=getenv("SSL_CIPHER"); + if (cipher == NULL && OPENSSL_issetugid() == 0) + cipher=getenv("SSL_CIPHER"); SSL_load_error_strings(); OpenSSL_add_ssl_algorithms(); |