Moved pdkim declaration to satisfy older compilers
[exim.git] / src / src / pdkim / pdkim.c
index c0c0e3263d3336aab22c8427dd34dd60eb10d330..4f0da3f7120eac1711de68c0bca745c44a1ff293 100644 (file)
@@ -1,7 +1,7 @@
 /*
  *  PDKIM - a RFC4871 (DKIM) implementation
  *
- *  Copyright (C) 2009  Tom Kistner <tom@duncanthrax.net>
+ *  Copyright (C) 2009 - 2012  Tom Kistner <tom@duncanthrax.net>
  *
  *  http://duncanthrax.net/pdkim/
  *
@@ -1383,10 +1383,11 @@ DLLEXPORT int pdkim_feed_finish(pdkim_ctx *ctx, pdkim_signature **return_signatu
       char *b = strdup(sig->headernames);
       char *p = b;
       char *q = NULL;
+      pdkim_stringlist *hdrs = ctx->headers;
+
       if (b == NULL) return PDKIM_ERR_OOM;
 
       /* clear tags */
-      pdkim_stringlist *hdrs = ctx->headers;
       while (hdrs != NULL) {
         hdrs->tag = 0;
         hdrs = hdrs->next;