aboutsummaryrefslogtreecommitdiff
path: root/src/daemon/daemontest_get.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/daemon/daemontest_get.c')
-rw-r--r--src/daemon/daemontest_get.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/daemon/daemontest_get.c b/src/daemon/daemontest_get.c
index 1a6ca12a..2d5729c1 100644
--- a/src/daemon/daemontest_get.c
+++ b/src/daemon/daemontest_get.c
@@ -73,17 +73,18 @@ ahc_echo (void *cls,
73 73
74 if (0 != strcmp (me, method)) 74 if (0 != strcmp (me, method))
75 return MHD_NO; /* unexpected method */ 75 return MHD_NO; /* unexpected method */
76 if (&ptr != *unused) { 76 if (&ptr != *unused)
77 *unused = &ptr; 77 {
78 return MHD_YES; 78 *unused = &ptr;
79 } 79 return MHD_YES;
80 }
80 *unused = NULL; 81 *unused = NULL;
81 response = MHD_create_response_from_data (strlen (url), 82 response = MHD_create_response_from_data (strlen (url),
82 (void *) url, MHD_NO, MHD_YES); 83 (void *) url, MHD_NO, MHD_YES);
83 ret = MHD_queue_response (connection, MHD_HTTP_OK, response); 84 ret = MHD_queue_response (connection, MHD_HTTP_OK, response);
84 MHD_destroy_response (response); 85 MHD_destroy_response (response);
85 if (ret == MHD_NO) 86 if (ret == MHD_NO)
86 abort(); 87 abort ();
87 return ret; 88 return ret;
88} 89}
89 90