git://git.exim.org
/
users
/
heiko
/
exim.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
dde9989
)
ARC: log signing-spec errors in mainlog only, not paniclog
author
Jeremy Harris
<jgh146exb@wizmail.org>
Wed, 28 Mar 2018 13:15:23 +0000
(14:15 +0100)
committer
Jeremy Harris
<jgh146exb@wizmail.org>
Tue, 3 Apr 2018 23:22:10 +0000
(
00:22
+0100)
src/src/arc.c
patch
|
blob
|
history
diff --git
a/src/src/arc.c
b/src/src/arc.c
index 5f51d614dbdcad49748c579ffd087c4205e104c5..dedf64c444341ed708ce2d907ff1d8d2384c298a 100644
(file)
--- a/
src/src/arc.c
+++ b/
src/src/arc.c
@@
-1239,7
+1239,7
@@
else
if ( (errstr = exim_dkim_signing_init(privkey, &sctx))
|| (errstr = exim_dkim_sign(&sctx, hm, &hhash, sig)))
{
if ( (errstr = exim_dkim_signing_init(privkey, &sctx))
|| (errstr = exim_dkim_sign(&sctx, hm, &hhash, sig)))
{
- log_write(0, LOG_MAIN
|LOG_PANIC
, "ARC: %s signing: %s\n", why, errstr);
+ log_write(0, LOG_MAIN, "ARC: %s signing: %s\n", why, errstr);
return FALSE;
}
return TRUE;
return FALSE;
}
return TRUE;
@@
-1550,12
+1550,12
@@
selector = string_nextinlist(&signspec, &sep, NULL, 0);
if ( !*identity | !*selector
|| !(privkey = string_nextinlist(&signspec, &sep, NULL, 0)) || !*privkey)
{
if ( !*identity | !*selector
|| !(privkey = string_nextinlist(&signspec, &sep, NULL, 0)) || !*privkey)
{
- log_write(0, LOG_MAIN
|LOG_PANIC
, "ARC: bad signing-specification (%s)",
+ log_write(0, LOG_MAIN, "ARC: bad signing-specification (%s)",
!*identity ? "identity" : !*selector ? "selector" : "private-key");
!*identity ? "identity" : !*selector ? "selector" : "private-key");
- return
NULL
;
+ return
sigheaders ? sigheaders : string_get(0)
;
}
if (*privkey == '/' && !(privkey = expand_file_big_buffer(privkey)))
}
if (*privkey == '/' && !(privkey = expand_file_big_buffer(privkey)))
- return
NULL
;
+ return
sigheaders ? sigheaders : string_get(0)
;
DEBUG(D_transport) debug_printf("ARC: sign for %s\n", identity);
DEBUG(D_transport) debug_printf("ARC: sign for %s\n", identity);
@@
-1584,7
+1584,7
@@
else
if (!(arc_sign_find_ar(headers, identity, &ar)))
{
if (!(arc_sign_find_ar(headers, identity, &ar)))
{
- log_write(0, LOG_MAIN
|LOG_PANIC
, "ARC: no Authentication-Results header for signing");
+ log_write(0, LOG_MAIN, "ARC: no Authentication-Results header for signing");
return sigheaders ? sigheaders : string_get(0);
}
return sigheaders ? sigheaders : string_get(0);
}