#endif
#define DEBUG_HTTP GNUNET_NO
-#define DEBUG_CURL GNUNET_YES
-#define DEBUG_MHD GNUNET_YES
+#define DEBUG_CURL GNUNET_NO
+#define DEBUG_MHD GNUNET_NO
#define DEBUG_CONNECTIONS GNUNET_NO
#define DEBUG_SESSION_SELECTION GNUNET_NO
#define DEBUG_SCHEDULING GNUNET_NO
*/
int curl_logger (CURL * curl, curl_infotype type , char * data, size_t size , void * cls)
{
+
if (type == CURLINFO_TEXT)
{
- char * text = GNUNET_malloc(size+2);
+ char text[size+2];
memcpy(text,data,size);
if (text[size-1] == '\n')
text[size] = '\0';
text[size+1] = '\0';
}
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,"CURL: Connection %X - %s", cls, text);
- GNUNET_free(text);
}
return 0;
}