summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfgang Breyha <wbreyha@gmx.net>2014-06-11 19:19:49 +0100
committerJeremy Harris <jgh146exb@wizmail.org>2014-06-11 19:58:21 +0100
commit75febd1bb37ede1b350b9e45e02f18b7d0067824 (patch)
tree7a2a7fee7633adcf3c2e699eb80bfa3947c93062
parent077ba9434716afd74c87b8100f745bb0fcc092e4 (diff)
Fix dkim for no-key case under SENDFILE compile. Bug 934
Tested-by: <wbreyha@gmx.net>
-rw-r--r--src/src/transport.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/src/transport.c b/src/src/transport.c
index d222adce8..3648bfc82 100644
--- a/src/src/transport.c
+++ b/src/src/transport.c
@@ -1068,7 +1068,7 @@ if (dkim_private_key && dkim_domain && dkim_selector)
uschar *dkim_strict_result = expand_string(dkim_strict);
if (dkim_strict_result)
if ( (strcmpic(dkim_strict,US"1") == 0) ||
- (strcmpic(dkim_strict,US"true") == 0) )
+ (strcmpic(dkim_strict,US"true") == 0) )
{
/* Set errno to something halfway meaningful */
save_errno = EACCES;
@@ -1104,8 +1104,8 @@ if (dkim_private_key && dkim_domain && dkim_selector)
}
}
- /* Fetch file positition (the size) */
- size = lseek(dkim_fd,0,SEEK_CUR);
+/* Fetch file size */
+size = lseek(dkim_fd, 0, SEEK_END);
/* Rewind file */
lseek(dkim_fd, 0, SEEK_SET);