diff --git a/opensmtpd/src/input/stdin.rs b/opensmtpd/src/input/stdin.rs index 0828113..847f0e9 100644 --- a/opensmtpd/src/input/stdin.rs +++ b/opensmtpd/src/input/stdin.rs @@ -52,7 +52,7 @@ impl FilterInput for StdIn { }, }; if len == 0 { - continue; + return Err(Error::new("Unable to read on stdin.")); } // Put the buffer's content in self.input self.input += match self.buffer.iter().position(|&x| x == 0) {