aboutsummaryrefslogtreecommitdiff
path: root/src/testcurl/test_iplimit.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testcurl/test_iplimit.c')
-rw-r--r--src/testcurl/test_iplimit.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/testcurl/test_iplimit.c b/src/testcurl/test_iplimit.c
index 09fe7773..509e3955 100644
--- a/src/testcurl/test_iplimit.c
+++ b/src/testcurl/test_iplimit.c
@@ -82,7 +82,7 @@ ahc_echo (void *cls,
82 const char *method, 82 const char *method,
83 const char *version, 83 const char *version,
84 const char *upload_data, size_t *upload_data_size, 84 const char *upload_data, size_t *upload_data_size,
85 void **unused) 85 void **req_cls)
86{ 86{
87 static int ptr; 87 static int ptr;
88 const char *me = cls; 88 const char *me = cls;
@@ -92,12 +92,12 @@ ahc_echo (void *cls,
92 92
93 if (0 != strcmp (me, method)) 93 if (0 != strcmp (me, method))
94 return MHD_NO; /* unexpected method */ 94 return MHD_NO; /* unexpected method */
95 if (&ptr != *unused) 95 if (&ptr != *req_cls)
96 { 96 {
97 *unused = &ptr; 97 *req_cls = &ptr;
98 return MHD_YES; 98 return MHD_YES;
99 } 99 }
100 *unused = NULL; 100 *req_cls = NULL;
101 response = MHD_create_response_from_buffer (strlen (url), 101 response = MHD_create_response_from_buffer (strlen (url),
102 (void *) url, 102 (void *) url,
103 MHD_RESPMEM_MUST_COPY); 103 MHD_RESPMEM_MUST_COPY);