diff options
author | Tom Kistner <tom@duncanthrax.net> | 2007-10-09 14:10:34 +0000 |
---|---|---|
committer | Tom Kistner <tom@duncanthrax.net> | 2007-10-09 14:10:34 +0000 |
commit | ca15ec2f2f35097a44bf1ba3e769214d39365902 (patch) | |
tree | a4322b4b2778ca4c657e9ea8ec6276bdea0baefc | |
parent | 1944d7e6e89fd2cb37c39fb69f321828fcad9644 (diff) |
fix uninitialized options struct
-rwxr-xr-x | src/src/dkim-exim.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/src/dkim-exim.c b/src/src/dkim-exim.c index 3b6e4e637..989c769f8 100755 --- a/src/src/dkim-exim.c +++ b/src/src/dkim-exim.c @@ -1,4 +1,4 @@ -/* $Cambridge: exim/src/src/dkim-exim.c,v 1.1 2007/09/28 12:21:57 tom Exp $ */ +/* $Cambridge: exim/src/src/dkim-exim.c,v 1.2 2007/10/09 14:10:34 tom Exp $ */ /************************************************* * Exim - an Internet mail transport agent * @@ -302,6 +302,9 @@ uschar *dkim_exim_sign(int dkim_fd, dkim_context = store_get(sizeof(DKIMContext)); dkim_sign_options = store_get(sizeof(DKIMSignOptions)); + memset(dkim_sign_options,0,sizeof(DKIMSignOptions)); + memset(dkim_context,0,sizeof(DKIMContext)); + dkim_sign_options->nIncludeBodyLengthTag = 0; dkim_sign_options->nIncludeCopiedHeaders = 0; dkim_sign_options->nHash = DKIM_HASH_SHA256; |