diff options
Diffstat (limited to 'src/transport/plugin_transport_http_server.c')
-rw-r--r-- | src/transport/plugin_transport_http_server.c | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/src/transport/plugin_transport_http_server.c b/src/transport/plugin_transport_http_server.c index eef83b29d..514f7fd1f 100644 --- a/src/transport/plugin_transport_http_server.c +++ b/src/transport/plugin_transport_http_server.c | |||
@@ -1495,7 +1495,7 @@ server_lookup_connection (struct HTTP_Server_Plugin *plugin, | |||
1495 | http_common_plugin_address_to_string (plugin->protocol, | 1495 | http_common_plugin_address_to_string (plugin->protocol, |
1496 | addr, | 1496 | addr, |
1497 | addr_len)); | 1497 | addr_len)); |
1498 | GNUNET_free_non_null (addr); | 1498 | GNUNET_free (addr); |
1499 | } | 1499 | } |
1500 | 1500 | ||
1501 | if ((_RECEIVE == direction) && | 1501 | if ((_RECEIVE == direction) && |
@@ -2179,9 +2179,9 @@ server_load_certificate (struct HTTP_Server_Plugin *plugin) | |||
2179 | { | 2179 | { |
2180 | struct GNUNET_OS_Process *cert_creation; | 2180 | struct GNUNET_OS_Process *cert_creation; |
2181 | 2181 | ||
2182 | GNUNET_free_non_null (plugin->key); | 2182 | GNUNET_free (plugin->key); |
2183 | plugin->key = NULL; | 2183 | plugin->key = NULL; |
2184 | GNUNET_free_non_null (plugin->cert); | 2184 | GNUNET_free (plugin->cert); |
2185 | plugin->cert = NULL; | 2185 | plugin->cert = NULL; |
2186 | 2186 | ||
2187 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 2187 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
@@ -2203,11 +2203,11 @@ server_load_certificate (struct HTTP_Server_Plugin *plugin) | |||
2203 | GNUNET_free (key_file); | 2203 | GNUNET_free (key_file); |
2204 | GNUNET_free (cert_file); | 2204 | GNUNET_free (cert_file); |
2205 | 2205 | ||
2206 | GNUNET_free_non_null (plugin->key); | 2206 | GNUNET_free (plugin->key); |
2207 | plugin->key = NULL; | 2207 | plugin->key = NULL; |
2208 | GNUNET_free_non_null (plugin->cert); | 2208 | GNUNET_free (plugin->cert); |
2209 | plugin->cert = NULL; | 2209 | plugin->cert = NULL; |
2210 | GNUNET_free_non_null (plugin->crypto_init); | 2210 | GNUNET_free (plugin->crypto_init); |
2211 | plugin->crypto_init = NULL; | 2211 | plugin->crypto_init = NULL; |
2212 | 2212 | ||
2213 | return GNUNET_SYSERR; | 2213 | return GNUNET_SYSERR; |
@@ -2228,11 +2228,11 @@ server_load_certificate (struct HTTP_Server_Plugin *plugin) | |||
2228 | GNUNET_free (key_file); | 2228 | GNUNET_free (key_file); |
2229 | GNUNET_free (cert_file); | 2229 | GNUNET_free (cert_file); |
2230 | 2230 | ||
2231 | GNUNET_free_non_null (plugin->key); | 2231 | GNUNET_free (plugin->key); |
2232 | plugin->key = NULL; | 2232 | plugin->key = NULL; |
2233 | GNUNET_free_non_null (plugin->cert); | 2233 | GNUNET_free (plugin->cert); |
2234 | plugin->cert = NULL; | 2234 | plugin->cert = NULL; |
2235 | GNUNET_free_non_null (plugin->crypto_init); | 2235 | GNUNET_free (plugin->crypto_init); |
2236 | plugin->crypto_init = NULL; | 2236 | plugin->crypto_init = NULL; |
2237 | 2237 | ||
2238 | return GNUNET_SYSERR; | 2238 | return GNUNET_SYSERR; |
@@ -2871,8 +2871,8 @@ server_start_report_addresses (struct HTTP_Server_Plugin *plugin) | |||
2871 | GNUNET_assert (NULL != addrs[res]); | 2871 | GNUNET_assert (NULL != addrs[res]); |
2872 | GNUNET_free (addrs[res]); | 2872 | GNUNET_free (addrs[res]); |
2873 | } | 2873 | } |
2874 | GNUNET_free_non_null (addrs); | 2874 | GNUNET_free (addrs); |
2875 | GNUNET_free_non_null (addrlens); | 2875 | GNUNET_free (addrlens); |
2876 | } | 2876 | } |
2877 | 2877 | ||
2878 | 2878 | ||
@@ -3316,9 +3316,9 @@ LIBGNUNET_PLUGIN_TRANSPORT_DONE (void *cls) | |||
3316 | plugin->server_v6_task = NULL; | 3316 | plugin->server_v6_task = NULL; |
3317 | } | 3317 | } |
3318 | #if BUILD_HTTPS | 3318 | #if BUILD_HTTPS |
3319 | GNUNET_free_non_null (plugin->crypto_init); | 3319 | GNUNET_free (plugin->crypto_init); |
3320 | GNUNET_free_non_null (plugin->cert); | 3320 | GNUNET_free (plugin->cert); |
3321 | GNUNET_free_non_null (plugin->key); | 3321 | GNUNET_free (plugin->key); |
3322 | #endif | 3322 | #endif |
3323 | GNUNET_CONTAINER_multipeermap_iterate (plugin->sessions, | 3323 | GNUNET_CONTAINER_multipeermap_iterate (plugin->sessions, |
3324 | &destroy_session_shutdown_cb, | 3324 | &destroy_session_shutdown_cb, |
@@ -3336,10 +3336,10 @@ LIBGNUNET_PLUGIN_TRANSPORT_DONE (void *cls) | |||
3336 | plugin->server_v6 = NULL; | 3336 | plugin->server_v6 = NULL; |
3337 | } | 3337 | } |
3338 | /* Clean up */ | 3338 | /* Clean up */ |
3339 | GNUNET_free_non_null (plugin->external_hostname); | 3339 | GNUNET_free (plugin->external_hostname); |
3340 | GNUNET_free_non_null (plugin->ext_addr); | 3340 | GNUNET_free (plugin->ext_addr); |
3341 | GNUNET_free_non_null (plugin->server_addr_v4); | 3341 | GNUNET_free (plugin->server_addr_v4); |
3342 | GNUNET_free_non_null (plugin->server_addr_v6); | 3342 | GNUNET_free (plugin->server_addr_v6); |
3343 | regfree (&plugin->url_regex); | 3343 | regfree (&plugin->url_regex); |
3344 | 3344 | ||
3345 | LOG (GNUNET_ERROR_TYPE_DEBUG, | 3345 | LOG (GNUNET_ERROR_TYPE_DEBUG, |