From 95302087ee8a322330591b71a0129f2130b0e1fa Mon Sep 17 00:00:00 2001 From: David Goulet Date: Sat, 10 Dec 2016 11:37:41 -0500 Subject: [PATCH] Don't check private key if detecting header Signed-off-by: David Goulet --- src/scrambler-istream.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/scrambler-istream.c b/src/scrambler-istream.c index 07047f2..746a474 100644 --- a/src/scrambler-istream.c +++ b/src/scrambler-istream.c @@ -83,14 +83,6 @@ scrambler_istream_read_detect_magic(struct scrambler_istream *sstream, { ssize_t ret; - if (sstream->private_key == NULL) { - i_error("[scrambler] Trying to decrypt without private key."); - sstream->istream.istream.stream_errno = EACCES; - sstream->istream.istream.eof = TRUE; - ret = -1; - goto end; - } - /* Check for the scrambler header and if so we have an encrypted email that * we'll try to decrypt. */ if (!memcmp(scrambler_header, source, sizeof(scrambler_header))) {