diff options
author | Michael Haardt <michael@moria.de> | 2010-02-19 10:30:13 +0000 |
---|---|---|
committer | Michael Haardt <michael@moria.de> | 2010-02-19 10:30:13 +0000 |
commit | db4d09028d12130b489cb7d5380641f3a61305af (patch) | |
tree | 9d4b61845306aedfc6a76453aecc2104d778eec6 /src | |
parent | a8e1eeba8a2ff7eb5b2c6165d63f003fd0dfe3eb (diff) |
Bug fix for yesterday's change, which worked in a production system
for quite some time and broke right after comitting it to CVS.
Diffstat (limited to 'src')
-rw-r--r-- | src/src/dkim.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/src/src/dkim.c b/src/src/dkim.c index d2abaff76..f88f910f9 100644 --- a/src/src/dkim.c +++ b/src/src/dkim.c @@ -1,4 +1,4 @@ -/* $Cambridge: exim/src/src/dkim.c,v 1.12 2010/02/18 12:09:15 michael Exp $ */ +/* $Cambridge: exim/src/src/dkim.c,v 1.13 2010/02/19 10:30:13 michael Exp $ */ /************************************************* * Exim - an Internet mail transport agent * @@ -458,13 +458,16 @@ uschar *dkim_exim_sign(int dkim_fd, pdkim_canon = PDKIM_CANON_RELAXED; } - dkim_sign_headers_expanded = expand_string(dkim_sign_headers); - if (dkim_sign_headers_expanded == NULL) { - log_write(0, LOG_MAIN|LOG_PANIC, "failed to expand " - "dkim_sign_headers: %s", expand_string_message); - rc = NULL; - goto CLEANUP; + if (dkim_sign_headers) { + dkim_sign_headers_expanded = expand_string(dkim_sign_headers); + if (dkim_sign_headers_expanded == NULL) { + log_write(0, LOG_MAIN|LOG_PANIC, "failed to expand " + "dkim_sign_headers: %s", expand_string_message); + rc = NULL; + goto CLEANUP; + } } + /* else pass NULL, which means default header list */ /* Get private key to use. */ dkim_private_key_expanded = expand_string(dkim_private_key); |