From: Tollef Fog Heen Date: Fri, 18 Sep 2009 16:44:57 +0000 (+0200) Subject: Must copy the data when creating a response X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=62a4cae3bcbefbec057275b2513a947bfc149ac6;p=yubikey-server-c Must copy the data when creating a response --- diff --git a/src/main.c b/src/main.c index 7a850c8..87a1f66 100644 --- a/src/main.c +++ b/src/main.c @@ -67,7 +67,7 @@ static int handle_request(void *data, fullname = PQgetvalue(res, i, 0); response = MHD_create_response_from_data(strlen(fullname), (void*)fullname, - MHD_NO, MHD_NO); + MHD_YES, MHD_YES); r = MHD_queue_response(conn, MHD_HTTP_OK, response); MHD_destroy_response(response); fprintf(stderr, "%s %s\n", method, url);