2
0
Эх сурвалжийг харах

microhttpd: create response with MHD_RESPMEM_MUST_COPY flag

Daniel-Constantin Mierla 6 сар өмнө
parent
commit
1569a7b71a

+ 1 - 1
src/modules/microhttpd/microhttpd_mod.c

@@ -360,7 +360,7 @@ static int ksr_mhttpd_send_reply(
 	}
 
 	response = MHD_create_response_from_buffer(
-			sbody->len, sbody->s, MHD_RESPMEM_PERSISTENT);
+			sbody->len, sbody->s, MHD_RESPMEM_MUST_COPY);
 	if(response == NULL) {
 		LM_ERR("failed to create the response\n");
 		return -1;