aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/upstream.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-02-18 13:57:13 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-02-18 13:57:13 +0000
commit81a0f3ca1152103eb0cd336bc4e2f5fabe6eef78 (patch)
tree320b26ab3c9b0099916d671163af23785f80f373 /src/libutil/upstream.c
parent0f32df6f44c75cb9be69618e699fb2972cc7d421 (diff)
downloadrspamd-81a0f3ca1152103eb0cd336bc4e2f5fabe6eef78.tar.gz
rspamd-81a0f3ca1152103eb0cd336bc4e2f5fabe6eef78.zip
[Minor] Oops, fix type
Diffstat (limited to 'src/libutil/upstream.c')
-rw-r--r--src/libutil/upstream.c6
1 files changed, 5 insertions, 1 deletions
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*