aboutsummaryrefslogtreecommitdiffstats
path: root/utils/rspamd_http_server.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-02-22 23:39:49 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-02-22 23:39:49 +0000
commit4394fa14de48cf7000cd89d87f1b7829616ee7df (patch)
tree859f59cb1982d0cee6d78df48482872d33504d53 /utils/rspamd_http_server.c
parent2b0e6f4d0e0582006c172867df93121755201e66 (diff)
downloadrspamd-4394fa14de48cf7000cd89d87f1b7829616ee7df.tar.gz
rspamd-4394fa14de48cf7000cd89d87f1b7829616ee7df.zip
Fix some more issues found by coverity
Diffstat (limited to 'utils/rspamd_http_server.c')
-rw-r--r--utils/rspamd_http_server.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/rspamd_http_server.c b/utils/rspamd_http_server.c
index f861b8a1f..ad01085df 100644
--- a/utils/rspamd_http_server.c
+++ b/utils/rspamd_http_server.c
@@ -191,8 +191,8 @@ rspamd_http_start_servers (pid_t *sfd, rspamd_inet_addr_t *addr)
guint i;
gint fd;
- g_assert (
- (fd = rspamd_inet_address_listen (addr, SOCK_STREAM, TRUE)) != -1);
+ fd = rspamd_inet_address_listen (addr, SOCK_STREAM, TRUE);
+ g_assert (fd != -1);
for (i = 0; i < nworkers; i++) {
sfd[i] = fork ();