aboutsummaryrefslogtreecommitdiff
path: root/src/testcurl/https
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2017-05-16 23:36:29 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2017-05-16 23:36:29 +0300
commitc7e815a80632e15798123ca66026ae945b7ca05f (patch)
tree968d41a76a6472db5f71417a63f498c0d73b15a2 /src/testcurl/https
parent6fe7680386b5e9e891206233004cca85b05e3d86 (diff)
downloadlibmicrohttpd-c7e815a80632e15798123ca66026ae945b7ca05f.tar.gz
libmicrohttpd-c7e815a80632e15798123ca66026ae945b7ca05f.zip
Fixed possible null dereference in HTTPS test
Diffstat (limited to 'src/testcurl/https')
-rw-r--r--src/testcurl/https/test_https_get_parallel_threads.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/testcurl/https/test_https_get_parallel_threads.c b/src/testcurl/https/test_https_get_parallel_threads.c
index 239559ac..03f31270 100644
--- a/src/testcurl/https/test_https_get_parallel_threads.c
+++ b/src/testcurl/https/test_https_get_parallel_threads.c
@@ -150,15 +150,15 @@ main (int argc, char *const *argv)
150 return 99; 150 return 99;
151 } 151 }
152 ssl_version = curl_version_info (CURLVERSION_NOW)->ssl_version; 152 ssl_version = curl_version_info (CURLVERSION_NOW)->ssl_version;
153 if (0 != strncmp (ssl_version, "GnuTLS", 6)) 153 if (NULL == ssl_version)
154 { 154 {
155 fprintf (stderr, "This test can be run only with libcurl-gnutls.\n"); 155 fprintf (stderr, "Curl does not support SSL. Cannot run the test.\n");
156 curl_global_cleanup (); 156 curl_global_cleanup ();
157 return 77; 157 return 77;
158 } 158 }
159 if (NULL == ssl_version) 159 if (0 != strncmp (ssl_version, "GnuTLS", 6))
160 { 160 {
161 fprintf (stderr, "Curl does not support SSL. Cannot run the test.\n"); 161 fprintf (stderr, "This test can be run only with libcurl-gnutls.\n");
162 curl_global_cleanup (); 162 curl_global_cleanup ();
163 return 77; 163 return 77;
164 } 164 }