add assertion to make static analysis happy
authorChristian Grothoff <christian@grothoff.org>
Fri, 10 Mar 2017 17:16:02 +0000 (18:16 +0100)
committerChristian Grothoff <christian@grothoff.org>
Fri, 10 Mar 2017 17:16:02 +0000 (18:16 +0100)
src/nat/gnunet-service-nat_externalip.c

index 8df6f48a5381a3d3d89bd397bab5c6af9f94291a..f79ff407073b8af4f40299dfc61eb6197ad592b7 100644 (file)
@@ -182,6 +182,7 @@ handle_external_ip (void *cls,
   switch (result)
   {
   case GNUNET_NAT_ERROR_SUCCESS:
+    GNUNET_assert (NULL != addr);
     if (addr->s_addr == mini_external_ipv4.s_addr)
       return; /* not change */
     GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,