libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit c7e815a80632e15798123ca66026ae945b7ca05f
parent 6fe7680386b5e9e891206233004cca85b05e3d86
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Tue, 16 May 2017 23:36:29 +0300

Fixed possible null dereference in HTTPS test

Diffstat:
Msrc/testcurl/https/test_https_get_parallel_threads.c | 8++++----
1 file 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 @@ -150,15 +150,15 @@ main (int argc, char *const *argv) return 99; } ssl_version = curl_version_info (CURLVERSION_NOW)->ssl_version; - if (0 != strncmp (ssl_version, "GnuTLS", 6)) + if (NULL == ssl_version) { - fprintf (stderr, "This test can be run only with libcurl-gnutls.\n"); + fprintf (stderr, "Curl does not support SSL. Cannot run the test.\n"); curl_global_cleanup (); return 77; } - if (NULL == ssl_version) + if (0 != strncmp (ssl_version, "GnuTLS", 6)) { - fprintf (stderr, "Curl does not support SSL. Cannot run the test.\n"); + fprintf (stderr, "This test can be run only with libcurl-gnutls.\n"); curl_global_cleanup (); return 77; }