aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2009-11-10 11:07:37 +0100
committerMartin Willi <martin@strongswan.org>2009-11-12 13:37:06 +0000
commit5bfe1b25299e557b4f514948840f7a6492f87828 (patch)
treeda1c430f02b965e6aadb713a22c79993a1fed9a4
parent733538a4211255e8978328ba54172268da9edea3 (diff)
downloadstrongswan-5bfe1b25299e557b4f514948840f7a6492f87828.tar.bz2
strongswan-5bfe1b25299e557b4f514948840f7a6492f87828.tar.xz
Properly initialize attribute encoding/length values
-rw-r--r--src/charon/encoding/generator.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/charon/encoding/generator.c b/src/charon/encoding/generator.c
index e8db55a7f..6485da492 100644
--- a/src/charon/encoding/generator.c
+++ b/src/charon/encoding/generator.c
@@ -880,6 +880,8 @@ generator_t *generator_create()
this->current_bit = 0;
this->last_payload_length_position_offset = 0;
this->header_length_position_offset = 0;
+ this->attribute_format = FALSE;
+ this->attribute_length = 0;
return &(this->public);
}