--- netqmail-1.06-tls/qmail-smtpd.c 2011-01-19 18:43:25.000000000 +0100 +++ netqmail-1.06-tlsvu#555316/qmail-smtpd.c 2011-01-19 19:26:31.000000000 +0100 @@ -326,6 +326,9 @@ char ssinbuf[1024]; substdio ssin = SUBSTDIO_FDBUF(saferead,0,ssinbuf,sizeof ssinbuf); +#ifdef TLS +void flush_io() { ssin.p = 0; flush(); } +#endif struct qmail qqt; unsigned int bytestooverflow = 0; @@ -687,7 +690,7 @@ , { "rset", smtp_rset, 0 } , { "help", smtp_help, flush } #ifdef TLS -, { "starttls", smtp_tls, flush } +, { "starttls", smtp_tls, flush_io } #endif , { "noop", err_noop, flush } , { "vrfy", err_vrfy, flush }