diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2011-10-18 15:55:07 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2011-10-18 15:55:07 +0000 |
commit | 3b83b633e8ac09b0f1151e40c3313ecaebb2135f (patch) | |
tree | 5ce811f9cdf36396be4a253f689956e93dba4dc9 /src/transport/plugin_transport_http_server.c | |
parent | 1f87b41f373e98c090cc04a8bf60fe844fa82ea3 (diff) | |
download | gnunet-3b83b633e8ac09b0f1151e40c3313ecaebb2135f.tar.gz gnunet-3b83b633e8ac09b0f1151e40c3313ecaebb2135f.zip |
unused variable
Diffstat (limited to 'src/transport/plugin_transport_http_server.c')
-rw-r--r-- | src/transport/plugin_transport_http_server.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/transport/plugin_transport_http_server.c b/src/transport/plugin_transport_http_server.c index 0eb88fc01..0454e5bef 100644 --- a/src/transport/plugin_transport_http_server.c +++ b/src/transport/plugin_transport_http_server.c | |||
@@ -359,17 +359,12 @@ server_lookup_session (struct Plugin *plugin, | |||
359 | void * a; | 359 | void * a; |
360 | size_t a_len; | 360 | size_t a_len; |
361 | struct GNUNET_PeerIdentity target; | 361 | struct GNUNET_PeerIdentity target; |
362 | size_t addrlen; | ||
363 | int check = GNUNET_NO; | 362 | int check = GNUNET_NO; |
364 | uint32_t tag = 0; | 363 | uint32_t tag = 0; |
365 | int direction; | 364 | int direction; |
366 | 365 | ||
367 | conn_info = MHD_get_connection_info (mhd_connection, MHD_CONNECTION_INFO_CLIENT_ADDRESS); | 366 | conn_info = MHD_get_connection_info (mhd_connection, MHD_CONNECTION_INFO_CLIENT_ADDRESS); |
368 | if (conn_info->client_addr->sa_family == AF_INET) | 367 | if ((conn_info->client_addr->sa_family != AF_INET) && (conn_info->client_addr->sa_family != AF_INET6)) |
369 | addrlen = sizeof (struct sockaddr_in); | ||
370 | else if (conn_info->client_addr->sa_family == AF_INET6) | ||
371 | addrlen = sizeof (struct sockaddr_in6); | ||
372 | else | ||
373 | return MHD_NO; | 368 | return MHD_NO; |
374 | 369 | ||
375 | if ((strlen(&url[1]) >= 105) && (url[104] == ';')) | 370 | if ((strlen(&url[1]) >= 105) && (url[104] == ';')) |