Преглед изворни кода

microhttpd: create response with MHD_RESPMEM_MUST_COPY flag

Daniel-Constantin Mierla пре 6 месеци
родитељ
комит
1569a7b71a
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/modules/microhttpd/microhttpd_mod.c

+ 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;