aboutsummaryrefslogtreecommitdiff
path: root/doc/examples/tlsauthentication.c
diff options
context:
space:
mode:
Diffstat (limited to 'doc/examples/tlsauthentication.c')
-rw-r--r--doc/examples/tlsauthentication.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/examples/tlsauthentication.c b/doc/examples/tlsauthentication.c
index b31eab43..4db00b7f 100644
--- a/doc/examples/tlsauthentication.c
+++ b/doc/examples/tlsauthentication.c
@@ -225,7 +225,7 @@ static enum MHD_Result
225answer_to_connection (void *cls, struct MHD_Connection *connection, 225answer_to_connection (void *cls, struct MHD_Connection *connection,
226 const char *url, const char *method, 226 const char *url, const char *method,
227 const char *version, const char *upload_data, 227 const char *version, const char *upload_data,
228 size_t *upload_data_size, void **con_cls) 228 size_t *upload_data_size, void **req_cls)
229{ 229{
230 (void) cls; /* Unused. Silent compiler warning. */ 230 (void) cls; /* Unused. Silent compiler warning. */
231 (void) url; /* Unused. Silent compiler warning. */ 231 (void) url; /* Unused. Silent compiler warning. */
@@ -235,9 +235,9 @@ answer_to_connection (void *cls, struct MHD_Connection *connection,
235 235
236 if (0 != strcmp (method, "GET")) 236 if (0 != strcmp (method, "GET"))
237 return MHD_NO; 237 return MHD_NO;
238 if (NULL == *con_cls) 238 if (NULL == *req_cls)
239 { 239 {
240 *con_cls = connection; 240 *req_cls = connection;
241 return MHD_YES; 241 return MHD_YES;
242 } 242 }
243 243