diff options
| author | Laurent Bercot <ska-skaware@skarnet.org> | 2025-12-04 14:54:58 +0000 |
|---|---|---|
| committer | Laurent Bercot <ska-skaware@skarnet.org> | 2025-12-04 14:54:58 +0000 |
| commit | 9ddc00a095f52307cba7f738f9408acdc9eb4ed2 (patch) | |
| tree | 6d1297d62ff02dae1197071d00e43cd91183788c /src | |
| parent | b28aa0de85b6b54ba40db198205e06c58c34022e (diff) | |
| download | smtpd-starttls-proxy-9ddc00a095f52307cba7f738f9408acdc9eb4ed2.tar.gz | |
Actually make fds blocking even in notls, just in case
Diffstat (limited to 'src')
| -rw-r--r-- | src/smtpd-starttls-proxy/smtpd-starttls-proxy-io.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/smtpd-starttls-proxy/smtpd-starttls-proxy-io.c b/src/smtpd-starttls-proxy/smtpd-starttls-proxy-io.c index 98345a8..e4b953c 100644 --- a/src/smtpd-starttls-proxy/smtpd-starttls-proxy-io.c +++ b/src/smtpd-starttls-proxy/smtpd-starttls-proxy-io.c @@ -323,11 +323,11 @@ static void child (int fdr, int fdw) if (!wantexec) _exit(0) ; if (buffer_len(&io[1].out) && !buffer_timed_flush_g(&io[1].out, &deadline)) strerr_diefu1sys(111, "write to server") ; + if (ndelay_off(0) == -1 || ndelay_off(1) == -1) + strerr_diefu1sys(111, "make fds blocking") ; if (wantexec >= 2) { int got = 0 ; - if (ndelay_off(0) == -1 || ndelay_off(1) == -1) - strerr_diefu1sys(111, "make fds blocking") ; if (write(fdctl, "Y", 1) != 1) strerr_diefu1sys(111, "send ucspi-tls start command") ; fd_shutdown(fdctl, 1) ; |
