From: Christian Grothoff Date: Mon, 24 Oct 2011 11:28:27 +0000 (+0000) Subject: asserts for cov X-Git-Tag: initial-import-from-subversion-38251~16296 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=74f4d1b55687ee69102abab7db0b318b29c53b86;p=oweals%2Fgnunet.git asserts for cov --- 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));