aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-03-12 16:43:56 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-03-12 16:43:56 +0000
commitf0eb014567dacec3c9505434d92f556f308b6bb1 (patch)
tree58415dd5c0976530242705545ba6cfa9d7d37c1c
parentad774a9493e2175dce496d18311c87beb955f42b (diff)
downloadrspamd-f0eb014567dacec3c9505434d92f556f308b6bb1.tar.gz
rspamd-f0eb014567dacec3c9505434d92f556f308b6bb1.zip
Implement missing function.
-rw-r--r--src/libutil/addr.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libutil/addr.c b/src/libutil/addr.c
index 645c22d31..e24432cfa 100644
--- a/src/libutil/addr.c
+++ b/src/libutil/addr.c
@@ -956,3 +956,11 @@ rspamd_inet_address_copy (const rspamd_inet_addr_t *addr)
return n;
}
+
+gint
+rspamd_inet_address_get_af (const rspamd_inet_addr_t *addr)
+{
+ g_assert (addr != NULL);
+
+ return addr->af;
+}