fix uninitialized options struct
authorTom Kistner <tom@duncanthrax.net>
Tue, 9 Oct 2007 14:10:34 +0000 (14:10 +0000)
committerTom Kistner <tom@duncanthrax.net>
Tue, 9 Oct 2007 14:10:34 +0000 (14:10 +0000)
src/src/dkim-exim.c

index 3b6e4e637d4c2ec09fd8b5f45b776ff52772b462..989c769f8620c47f27352494197ab6c65c714866 100755 (executable)
@@ -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;