aboutsummaryrefslogtreecommitdiff
path: root/src/testcurl/test_parse_cookies.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testcurl/test_parse_cookies.c')
-rw-r--r--src/testcurl/test_parse_cookies.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/testcurl/test_parse_cookies.c b/src/testcurl/test_parse_cookies.c
index 07c67567..0fc5ffc1 100644
--- a/src/testcurl/test_parse_cookies.c
+++ b/src/testcurl/test_parse_cookies.c
@@ -68,7 +68,7 @@ ahc_echo (void *cls,
68 const char *method, 68 const char *method,
69 const char *version, 69 const char *version,
70 const char *upload_data, size_t *upload_data_size, 70 const char *upload_data, size_t *upload_data_size,
71 void **unused) 71 void **req_cls)
72{ 72{
73 static int ptr; 73 static int ptr;
74 const char *me = cls; 74 const char *me = cls;
@@ -79,12 +79,12 @@ ahc_echo (void *cls,
79 79
80 if (0 != strcmp (me, method)) 80 if (0 != strcmp (me, method))
81 return MHD_NO; /* unexpected method */ 81 return MHD_NO; /* unexpected method */
82 if (&ptr != *unused) 82 if (&ptr != *req_cls)
83 { 83 {
84 *unused = &ptr; 84 *req_cls = &ptr;
85 return MHD_YES; 85 return MHD_YES;
86 } 86 }
87 *unused = NULL; 87 *req_cls = NULL;
88 88
89 hdr = MHD_lookup_connection_value (connection, MHD_COOKIE_KIND, "name1"); 89 hdr = MHD_lookup_connection_value (connection, MHD_COOKIE_KIND, "name1");
90 if ((hdr == NULL) || (0 != strcmp (hdr, "var1"))) 90 if ((hdr == NULL) || (0 != strcmp (hdr, "var1")))