aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/addr.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libutil/addr.c')
-rw-r--r--src/libutil/addr.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libutil/addr.c b/src/libutil/addr.c
index 747ac869e..f301c724e 100644
--- a/src/libutil/addr.c
+++ b/src/libutil/addr.c
@@ -1334,7 +1334,9 @@ rspamd_inet_address_equal (gconstpointer a, gconstpointer b)
gboolean
rspamd_inet_address_is_local (const rspamd_inet_addr_t *addr)
{
- g_assert (addr != NULL);
+ if (addr == NULL) {
+ return FALSE;
+ }
if (addr->af == AF_UNIX) {
/* Always true for unix sockets */