From edd5320032bd90563942dc85a0b29e09888dad67 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 22 Nov 2014 20:09:40 +0000 Subject: [PATCH] -fixes --- src/transport/plugin_transport_http_client.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/transport/plugin_transport_http_client.c b/src/transport/plugin_transport_http_client.c index a4ecca371..16676bc2d 100644 --- a/src/transport/plugin_transport_http_client.c +++ b/src/transport/plugin_transport_http_client.c @@ -1484,7 +1484,7 @@ open_tcp_stealth_socket_cb (void *clientp, if ( (0 != setsockopt (ret, IPPROTO_TCP, SO_TCPSTEALTH, - &s->target, + &s->address->peer, sizeof (struct GNUNET_PeerIdentity))) ) { (void) close (ret); @@ -1498,6 +1498,9 @@ open_tcp_stealth_socket_cb (void *clientp, case CURLSOCKTYPE_LAST: GNUNET_break (0); return CURL_SOCKET_BAD; + default: + GNUNET_break (0); + return CURL_SOCKET_BAD; } } #endif -- 2.25.1