]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Oops, fix type
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 18 Feb 2019 13:57:13 +0000 (13:57 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 18 Feb 2019 13:57:13 +0000 (13:57 +0000)
src/libutil/upstream.c

index 938c49011d46f95092d101917350b434ab2a9d78..2ce2945253df4445caf6f504b146c5aef463d73f 100644 (file)
@@ -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*