Kaynağa Gözat

microhttpd: create response with MHD_RESPMEM_MUST_COPY flag

Daniel-Constantin Mierla 6 ay önce
ebeveyn
işleme
1569a7b71a
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  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;