diff options
Diffstat (limited to 'src/libutil/upstream.c')
-rw-r--r-- | src/libutil/upstream.c | 6 |
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* |