From 75febd1bb37ede1b350b9e45e02f18b7d0067824 Mon Sep 17 00:00:00 2001 From: Wolfgang Breyha Date: Wed, 11 Jun 2014 19:19:49 +0100 Subject: [PATCH] Fix dkim for no-key case under SENDFILE compile. Bug 934 Tested-by: --- src/src/transport.c | 6 +++--- 1 file 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); -- 2.25.1