aboutsummaryrefslogtreecommitdiff
path: root/src/testcurl/https/test_https_get_select.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testcurl/https/test_https_get_select.c')
-rw-r--r--src/testcurl/https/test_https_get_select.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/testcurl/https/test_https_get_select.c b/src/testcurl/https/test_https_get_select.c
index 5c04aaab..65570aab 100644
--- a/src/testcurl/https/test_https_get_select.c
+++ b/src/testcurl/https/test_https_get_select.c
@@ -46,7 +46,7 @@ ahc_echo (void *cls,
46 const char *method, 46 const char *method,
47 const char *version, 47 const char *version,
48 const char *upload_data, size_t *upload_data_size, 48 const char *upload_data, size_t *upload_data_size,
49 void **unused) 49 void **req_cls)
50{ 50{
51 static int ptr; 51 static int ptr;
52 const char *me = cls; 52 const char *me = cls;
@@ -56,12 +56,12 @@ ahc_echo (void *cls,
56 56
57 if (0 != strcmp (me, method)) 57 if (0 != strcmp (me, method))
58 return MHD_NO; /* unexpected method */ 58 return MHD_NO; /* unexpected method */
59 if (&ptr != *unused) 59 if (&ptr != *req_cls)
60 { 60 {
61 *unused = &ptr; 61 *req_cls = &ptr;
62 return MHD_YES; 62 return MHD_YES;
63 } 63 }
64 *unused = NULL; 64 *req_cls = NULL;
65 response = MHD_create_response_from_buffer (strlen (url), 65 response = MHD_create_response_from_buffer (strlen (url),
66 (void *) url, 66 (void *) url,
67 MHD_RESPMEM_MUST_COPY); 67 MHD_RESPMEM_MUST_COPY);