[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnurl] 61/125: vtls: replaced getenv() with curl_getenv()
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnurl] 61/125: vtls: replaced getenv() with curl_getenv() |
Date: |
Sun, 21 Jan 2018 23:41:56 +0100 |
This is an automated email from the git hooks/post-receive script.
ng0 pushed a commit to branch master
in repository gnurl.
commit 2437dbbf12a2ec744e27823065cd09cf7ad6847e
Author: dmitrykos <address@hidden>
AuthorDate: Sun Dec 10 20:40:44 2017 +0200
vtls: replaced getenv() with curl_getenv()
Fixed undefined symbol of getenv() which does not exist when compiling
for Windows 10 App (CURL_WINDOWS_APP). Replaced getenv() with
curl_getenv() which is aware of getenv() absence when CURL_WINDOWS_APP
is defined.
Closes #2171
---
lib/vtls/vtls.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/lib/vtls/vtls.c b/lib/vtls/vtls.c
index 56e631771..def1d30cb 100644
--- a/lib/vtls/vtls.c
+++ b/lib/vtls/vtls.c
@@ -1260,6 +1260,7 @@ static size_t Curl_multissl_version(char *buffer, size_t
size)
static int multissl_init(const struct Curl_ssl *backend)
{
const char *env;
+ char *env_tmp;
int i;
if(Curl_ssl != &Curl_ssl_multi)
@@ -1273,7 +1274,7 @@ static int multissl_init(const struct Curl_ssl *backend)
if(!available_backends[0])
return 1;
- env = getenv("CURL_SSL_BACKEND");
+ env = env_tmp = curl_getenv("CURL_SSL_BACKEND");
#ifdef CURL_DEFAULT_SSL_BACKEND
if(!env)
env = CURL_DEFAULT_SSL_BACKEND;
@@ -1282,6 +1283,7 @@ static int multissl_init(const struct Curl_ssl *backend)
for(i = 0; available_backends[i]; i++) {
if(strcasecompare(env, available_backends[i]->info.name)) {
Curl_ssl = available_backends[i];
+ curl_free(env_tmp);
return 0;
}
}
@@ -1289,6 +1291,7 @@ static int multissl_init(const struct Curl_ssl *backend)
/* Fall back to first available backend */
Curl_ssl = available_backends[0];
+ curl_free(env_tmp);
return 0;
}
--
To stop receiving notification emails like this one, please contact
address@hidden
- [GNUnet-SVN] [gnurl] 33/125: RELEASE-NOTES: synced with b261c44e8, (continued)
- [GNUnet-SVN] [gnurl] 33/125: RELEASE-NOTES: synced with b261c44e8, gnunet, 2018/01/21
- [GNUnet-SVN] [gnurl] 20/125: libssh: fixed dereference in statvfs access, gnunet, 2018/01/21
- [GNUnet-SVN] [gnurl] 27/125: threaded-shared-conn.c: fixed typo in commenta, gnunet, 2018/01/21
- [GNUnet-SVN] [gnurl] 26/125: threaded-shared-conn.c: new example, gnunet, 2018/01/21
- [GNUnet-SVN] [gnurl] 54/125: tests: mark data files as non-executable in git, gnunet, 2018/01/21
- [GNUnet-SVN] [gnurl] 50/125: openssl: Disable file buffering for Win32 SSLKEYLOGFILE, gnunet, 2018/01/21
- [GNUnet-SVN] [gnurl] 51/125: mailmap: fixup two old git Author "aliases", gnunet, 2018/01/21
- [GNUnet-SVN] [gnurl] 35/125: openldap: add commented out debug possibilities, gnunet, 2018/01/21
- [GNUnet-SVN] [gnurl] 53/125: tests: update .gitignore for libtests, gnunet, 2018/01/21
- [GNUnet-SVN] [gnurl] 69/125: krb5: fix a potential access of uninitialized memory, gnunet, 2018/01/21
- [GNUnet-SVN] [gnurl] 61/125: vtls: replaced getenv() with curl_getenv(),
gnunet <=
- [GNUnet-SVN] [gnurl] 58/125: curl.1: mention http:// and https:// as valid proxy prefixes, gnunet, 2018/01/21
- [GNUnet-SVN] [gnurl] 56/125: CURLOPT_DNS_LOCAL_IP4.3: fixed the seel also to not self-reference, gnunet, 2018/01/21
- [GNUnet-SVN] [gnurl] 30/125: configure: check for netinet/in6.h, gnunet, 2018/01/21
- [GNUnet-SVN] [gnurl] 37/125: include: get netinet/in.h before linux/tcp.h, gnunet, 2018/01/21
- [GNUnet-SVN] [gnurl] 45/125: curl: remove __EMX__ #ifdefs, gnunet, 2018/01/21
- [GNUnet-SVN] [gnurl] 57/125: curl.1: documented two missing valid exit codes, gnunet, 2018/01/21
- [GNUnet-SVN] [gnurl] 60/125: RELEASE-NOTES: synced with 3b9ea70ee, gnunet, 2018/01/21
- [GNUnet-SVN] [gnurl] 64/125: THANKS: added missing names, gnunet, 2018/01/21
- [GNUnet-SVN] [gnurl] 86/125: curl_version_info.3: call the argument 'age', gnunet, 2018/01/21
- [GNUnet-SVN] [gnurl] 43/125: curl: don't set CURLOPT_INTERLEAVEDATA, gnunet, 2018/01/21