tom 2007/10/09 15:10:34 BST
Modified files:
exim-src/src dkim-exim.c
Log:
fix uninitialized options struct
Revision Changes Path
1.2 +3 -0 exim/exim-src/src/dkim-exim.c
Index: dkim-exim.c
===================================================================
RCS file: /home/cvs/exim/exim-src/src/dkim-exim.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- dkim-exim.c 28 Sep 2007 12:21:57 -0000 1.1
+++ dkim-exim.c 9 Oct 2007 14:10:34 -0000 1.2
@@ -1,4 +1,4 @@
-/* $Cambridge: exim/exim-src/src/dkim-exim.c,v 1.1 2007/09/28 12:21:57 tom Exp $ */
+/* $Cambridge: exim/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 @@
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;