aboutsummaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_https.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/transport/plugin_transport_https.c')
-rw-r--r--src/transport/plugin_transport_https.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/transport/plugin_transport_https.c b/src/transport/plugin_transport_https.c
index befab118e..c1a3fc9ac 100644
--- a/src/transport/plugin_transport_https.c
+++ b/src/transport/plugin_transport_https.c
@@ -1134,8 +1134,7 @@ static void http_server_daemon_v6_run (void *cls,
1134static size_t curl_get_header_cb( void *ptr, size_t size, size_t nmemb, void *stream) 1134static size_t curl_get_header_cb( void *ptr, size_t size, size_t nmemb, void *stream)
1135{ 1135{
1136 struct Session * ps = stream; 1136 struct Session * ps = stream;
1137 char * tmp; 1137
1138 size_t len = size * nmemb;
1139 long http_result = 0; 1138 long http_result = 0;
1140 int res; 1139 int res;
1141 /* Getting last http result code */ 1140 /* Getting last http result code */
@@ -1158,6 +1157,10 @@ static size_t curl_get_header_cb( void *ptr, size_t size, size_t nmemb, void *st
1158 } 1157 }
1159 } 1158 }
1160 1159
1160#if DEBUG_CURL
1161 char * tmp;
1162 size_t len = size * nmemb;
1163
1161 tmp = NULL; 1164 tmp = NULL;
1162 if ((size * nmemb) < SIZE_MAX) 1165 if ((size * nmemb) < SIZE_MAX)
1163 tmp = GNUNET_malloc (len+1); 1166 tmp = GNUNET_malloc (len+1);
@@ -1176,6 +1179,7 @@ static size_t curl_get_header_cb( void *ptr, size_t size, size_t nmemb, void *st
1176 } 1179 }
1177 if (NULL != tmp) 1180 if (NULL != tmp)
1178 GNUNET_free (tmp); 1181 GNUNET_free (tmp);
1182#endif
1179 1183
1180 return size * nmemb; 1184 return size * nmemb;
1181} 1185}