From d773b6f69d1be9bf7f89758714920cd5495ddd5d Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 10 Mar 2017 18:16:02 +0100 Subject: [PATCH] add assertion to make static analysis happy --- src/nat/gnunet-service-nat_externalip.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/nat/gnunet-service-nat_externalip.c b/src/nat/gnunet-service-nat_externalip.c index 8df6f48a5..f79ff4070 100644 --- a/src/nat/gnunet-service-nat_externalip.c +++ b/src/nat/gnunet-service-nat_externalip.c @@ -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, -- 2.25.1