asserts for cov
authorChristian Grothoff <christian@grothoff.org>
Mon, 24 Oct 2011 11:28:27 +0000 (11:28 +0000)
committerChristian Grothoff <christian@grothoff.org>
Mon, 24 Oct 2011 11:28:27 +0000 (11:28 +0000)
src/transport/plugin_transport_tcp.c

index 5a77f25b57acee860475c677afaa245e57e07add..04ba348b3cefeb199072f7ef0d4ea5c6a39dac7d 100644 (file)
@@ -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));