diff options
Diffstat (limited to 'doc/examples/basicauthentication.c')
-rw-r--r-- | doc/examples/basicauthentication.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/examples/basicauthentication.c b/doc/examples/basicauthentication.c index fffc728f..3b105a1d 100644 --- a/doc/examples/basicauthentication.c +++ b/doc/examples/basicauthentication.c | |||
@@ -21,7 +21,7 @@ static enum MHD_Result | |||
21 | answer_to_connection (void *cls, struct MHD_Connection *connection, | 21 | answer_to_connection (void *cls, struct MHD_Connection *connection, |
22 | const char *url, const char *method, | 22 | const char *url, const char *method, |
23 | const char *version, const char *upload_data, | 23 | const char *version, const char *upload_data, |
24 | size_t *upload_data_size, void **con_cls) | 24 | size_t *upload_data_size, void **req_cls) |
25 | { | 25 | { |
26 | char *user; | 26 | char *user; |
27 | char *pass; | 27 | char *pass; |
@@ -36,9 +36,9 @@ answer_to_connection (void *cls, struct MHD_Connection *connection, | |||
36 | 36 | ||
37 | if (0 != strcmp (method, "GET")) | 37 | if (0 != strcmp (method, "GET")) |
38 | return MHD_NO; | 38 | return MHD_NO; |
39 | if (NULL == *con_cls) | 39 | if (NULL == *req_cls) |
40 | { | 40 | { |
41 | *con_cls = connection; | 41 | *req_cls = connection; |
42 | return MHD_YES; | 42 | return MHD_YES; |
43 | } | 43 | } |
44 | pass = NULL; | 44 | pass = NULL; |