initialize new struct msg_digest
authorAndreas Steffen <andreas.steffen@strongswan.org>
Sun, 19 Apr 2009 18:42:47 +0000 (18:42 -0000)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Sun, 19 Apr 2009 18:42:47 +0000 (18:42 -0000)
src/pluto/demux.c

index c943a11..5509bd2 100644 (file)
@@ -971,7 +971,10 @@ malloc_md(void)
     static const struct msg_digest blank_md;
 
     if (md == NULL)
+    {
        md = malloc_thing(struct msg_digest);
+       zero(md);
+    }
     else
        md_pool = md->next;