commit 81a0f3c: [Minor] Oops, fix type

Vsevolod Stakhov vsevolod at highsecure.ru
Mon Feb 18 14:00:04 UTC 2019


Author: Vsevolod Stakhov
Date: 2019-02-18 13:57:13 +0000
URL: https://github.com/rspamd/rspamd/commit/81a0f3ca1152103eb0cd336bc4e2f5fabe6eef78 (HEAD -> master)

[Minor] Oops, fix type

---
 src/libutil/upstream.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

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*


More information about the Commits mailing list