From 81a0f3ca1152103eb0cd336bc4e2f5fabe6eef78 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 18 Feb 2019 13:57:13 +0000 Subject: [Minor] Oops, fix type --- src/libutil/upstream.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/libutil') diff --git a/src/libutil/upstream.c b/src/libutil/upstream.c index 938c49011..2ce294525 100644 --- a/src/libutil/upstream.c +++ b/src/libutil/upstream.c @@ -649,7 +649,11 @@ rspamd_upstream_addr_next (struct upstream *up) rspamd_inet_addr_t* rspamd_upstream_addr_cur (const struct upstream *up) { - return g_ptr_array_index (up->addrs.addr, up->addrs.cur); + struct upstream_addr_elt *elt; + + elt = g_ptr_array_index (up->addrs.addr, up->addrs.cur); + + return elt->addr; } const gchar* -- cgit v1.2.3