fix #3893 - thanks matwey

This commit is contained in:
Christian Grothoff
2015-07-15 12:15:11 +00:00
parent abdc3ae6fc
commit b118d605ac
+4 -1
View File
@@ -90,6 +90,7 @@ query_session_ahc (void *cls, struct MHD_Connection *connection,
/**
* negotiate a secure connection with server & query negotiated security parameters
*/
#if LIBCURL_VERSION_NUM >= 0x072200
static int
test_query_session ()
{
@@ -161,7 +162,7 @@ test_query_session ()
free (cbc.buf);
return 0;
}
#endif
int
main (int argc, char *const *argv)
@@ -177,7 +178,9 @@ main (int argc, char *const *argv)
fprintf (stderr, "Error (code: %u)\n", errorCount);
return -1;
}
#if LIBCURL_VERSION_NUM >= 0x072200
errorCount += test_query_session ();
#endif
print_test_result (errorCount, argv[0]);
curl_global_cleanup ();
if (errorCount > 0)