aboutsummaryrefslogtreecommitdiffstats
path: root/src/smtp_utils.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2011-10-18 17:56:51 +0300
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2011-10-18 17:56:51 +0300
commit89c8b90f8e52f9274996ffb6a2b0dc1214ea1010 (patch)
treee6562bafa220d38c502fdfb54091d6a542e1cce2 /src/smtp_utils.c
parenta761bb36a4f5d6a1f229c465c4a57fe05637e278 (diff)
downloadrspamd-89c8b90f8e52f9274996ffb6a2b0dc1214ea1010.tar.gz
rspamd-89c8b90f8e52f9274996ffb6a2b0dc1214ea1010.zip
Add universal utility function for creating stream sockets.
Diffstat (limited to 'src/smtp_utils.c')
-rw-r--r--src/smtp_utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/smtp_utils.c b/src/smtp_utils.c
index 27dffd275..1ed92ead6 100644
--- a/src/smtp_utils.c
+++ b/src/smtp_utils.c
@@ -78,7 +78,7 @@ create_smtp_upstream_connection (struct smtp_session *session)
/* Now try to create socket */
if (selected->is_unix) {
un = alloca (sizeof (struct sockaddr_un));
- session->upstream_sock = make_unix_socket (selected->name, un, FALSE);
+ session->upstream_sock = make_unix_socket (selected->name, un, FALSE, TRUE);
}
else {
session->upstream_sock = make_tcp_socket (&selected->addr, selected->port, FALSE, TRUE);