Fixed possible null dereference in HTTPS test

This commit is contained in:
Evgeny Grin (Karlson2k) committed 2017-05-16 23:36:29 +03:00
1 parent 6fe7680386
commit c7e815a806
1 file changed
+6 -6
@@ -150,18 +150,18 @@ main (int argc, char *const *argv)
return 99;
}
ssl_version = curl_version_info (CURLVERSION_NOW)->ssl_version;
if (0 != strncmp (ssl_version, "GnuTLS", 6))
{
fprintf (stderr, "This test can be run only with libcurl-gnutls.\n");
curl_global_cleanup ();
return 77;
}
if (NULL == ssl_version)
{
fprintf (stderr, "Curl does not support SSL. Cannot run the test.\n");
curl_global_cleanup ();
return 77;
}
if (0 != strncmp (ssl_version, "GnuTLS", 6))
{
fprintf (stderr, "This test can be run only with libcurl-gnutls.\n");
curl_global_cleanup ();
return 77;
}
char *aes256_sha = "AES256-SHA";
if (curl_uses_nss_ssl() == 0)