diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-02-22 23:39:49 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-02-22 23:39:49 +0000 |
commit | 4394fa14de48cf7000cd89d87f1b7829616ee7df (patch) | |
tree | 859f59cb1982d0cee6d78df48482872d33504d53 /src/rspamd.c | |
parent | 2b0e6f4d0e0582006c172867df93121755201e66 (diff) | |
download | rspamd-4394fa14de48cf7000cd89d87f1b7829616ee7df.tar.gz rspamd-4394fa14de48cf7000cd89d87f1b7829616ee7df.zip |
Fix some more issues found by coverity
Diffstat (limited to 'src/rspamd.c')
-rw-r--r-- | src/rspamd.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/rspamd.c b/src/rspamd.c index a01b9db79..895cc63bf 100644 --- a/src/rspamd.c +++ b/src/rspamd.c @@ -336,13 +336,15 @@ create_listen_socket (GPtrArray *addrs, guint cnt, gint listen_type) GList *result = NULL; gint fd; guint i; + gpointer p; g_ptr_array_sort (addrs, rspamd_inet_address_compare_ptr); for (i = 0; i < cnt; i ++) { fd = rspamd_inet_address_listen (g_ptr_array_index (addrs, i), listen_type, TRUE); if (fd != -1) { - result = g_list_prepend (result, GINT_TO_POINTER (fd)); + p = GINT_TO_POINTER (fd); + result = g_list_prepend (result, p); } } |