[exim-cvs] Fix errorcheck in smtp transport

Top Page
Delete this message
Reply to this message
Author: Exim Git Commits Mailing List
Date:  
To: exim-cvs
Subject: [exim-cvs] Fix errorcheck in smtp transport
Gitweb: https://git.exim.org/exim.git/commitdiff/efa73277b6cab96e4bed1a5f5d42fd3fcc5d279b
Commit:     efa73277b6cab96e4bed1a5f5d42fd3fcc5d279b
Parent:     002fcd22b0e14ecb70c8c88a77985e07e7e4f9cd
Author:     Jeremy Harris <jgh146exb@???>
AuthorDate: Sat Oct 12 14:12:56 2019 +0100
Committer:  Jeremy Harris <jgh146exb@???>
CommitDate: Sat Oct 12 14:12:56 2019 +0100


    Fix errorcheck in smtp transport
---
 src/src/transports/smtp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


diff --git a/src/src/transports/smtp.c b/src/src/transports/smtp.c
index fd550ef..c547c87 100644
--- a/src/src/transports/smtp.c
+++ b/src/src/transports/smtp.c
@@ -4285,7 +4285,7 @@ if (sx.completed_addr && sx.ok && sx.send_quit)
       /* Set up a pipe for proxying TLS for the new transport process */


       smtp_peer_options |= OPTION_TLS;
-      if (sx.ok = (socketpair(AF_UNIX, SOCK_STREAM, 0, pfd) == 0))
+      if ((sx.ok = socketpair(AF_UNIX, SOCK_STREAM, 0, pfd) == 0))
         socket_fd = pfd[1];
       else
         set_errno(sx.first_addr, errno, US"internal allocation problem",