Only use environment variables if uid and gid are the same as euid and egid.
authorRichard Levitte <levitte@openssl.org>
Sat, 27 Dec 2003 16:07:18 +0000 (16:07 +0000)
committerRichard Levitte <levitte@openssl.org>
Sat, 27 Dec 2003 16:07:18 +0000 (16:07 +0000)
This is part of a large change submitted by Markus Friedl <markus@openbsd.org>

crypto/threads/mttest.c

index 54d598565d5357648356e2fff7e8cc3a2753454d..7588966cb21936dde32372eda9a00bd1253cfbdf 100644 (file)
@@ -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();