ソースを参照

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;