aboutsummaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_tcp.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-10-24 11:28:27 +0000
committerChristian Grothoff <christian@grothoff.org>2011-10-24 11:28:27 +0000
commit74f4d1b55687ee69102abab7db0b318b29c53b86 (patch)
treed37cf73890bc8377529ab8aebc4bc75ba3089b8c /src/transport/plugin_transport_tcp.c
parent35899b8771d61bcfc4cb70077efd9a748e272f07 (diff)
downloadgnunet-74f4d1b55687ee69102abab7db0b318b29c53b86.tar.gz
gnunet-74f4d1b55687ee69102abab7db0b318b29c53b86.zip
asserts for cov
Diffstat (limited to 'src/transport/plugin_transport_tcp.c')
-rw-r--r--src/transport/plugin_transport_tcp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/transport/plugin_transport_tcp.c b/src/transport/plugin_transport_tcp.c
index 5a77f25b5..04ba348b3 100644
--- a/src/transport/plugin_transport_tcp.c
+++ b/src/transport/plugin_transport_tcp.c
@@ -1002,6 +1002,7 @@ tcp_plugin_send (void *cls, const struct GNUNET_PeerIdentity *target,
1002 { 1002 {
1003 if (addrlen == sizeof (struct IPv6TcpAddress)) 1003 if (addrlen == sizeof (struct IPv6TcpAddress))
1004 { 1004 {
1005 GNUNET_assert (NULL != addr); /* make static analysis happy */
1005 t6 = addr; 1006 t6 = addr;
1006 af = AF_INET6; 1007 af = AF_INET6;
1007 memset (&a6, 0, sizeof (a6)); 1008 memset (&a6, 0, sizeof (a6));
@@ -1018,6 +1019,7 @@ tcp_plugin_send (void *cls, const struct GNUNET_PeerIdentity *target,
1018 } 1019 }
1019 else if (addrlen == sizeof (struct IPv4TcpAddress)) 1020 else if (addrlen == sizeof (struct IPv4TcpAddress))
1020 { 1021 {
1022 GNUNET_assert (NULL != addr); /* make static analysis happy */
1021 t4 = addr; 1023 t4 = addr;
1022 af = AF_INET; 1024 af = AF_INET;
1023 memset (&a4, 0, sizeof (a4)); 1025 memset (&a4, 0, sizeof (a4));