From 74f4d1b55687ee69102abab7db0b318b29c53b86 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 24 Oct 2011 11:28:27 +0000 Subject: [PATCH] asserts for cov --- src/transport/plugin_transport_tcp.c | 2 ++ 1 file changed, 2 insertions(+) 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, { if (addrlen == sizeof (struct IPv6TcpAddress)) { + GNUNET_assert (NULL != addr); /* make static analysis happy */ t6 = addr; af = AF_INET6; memset (&a6, 0, sizeof (a6)); @@ -1018,6 +1019,7 @@ tcp_plugin_send (void *cls, const struct GNUNET_PeerIdentity *target, } else if (addrlen == sizeof (struct IPv4TcpAddress)) { + GNUNET_assert (NULL != addr); /* make static analysis happy */ t4 = addr; af = AF_INET; memset (&a4, 0, sizeof (a4)); -- 2.25.1