summaryrefslogtreecommitdiffstats
path: root/crypto/threads
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2003-12-27 16:07:20 +0000
committerRichard Levitte <levitte@openssl.org>2003-12-27 16:07:20 +0000
commitf28e8bd300b32710c829316b4f620960154cf3e2 (patch)
tree0145a787e064abed41c6360683d73da6d2ce47e5 /crypto/threads
parentde02ec27673108e4b1e92883171ee8c3092a6e54 (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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/threads/mttest.c b/crypto/threads/mttest.c
index d0e088218b..f6f3df4b6a 100644
--- a/crypto/threads/mttest.c
+++ b/crypto/threads/mttest.c
@@ -267,7 +267,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();