]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
Properly initialize attribute encoding/length values
authorMartin Willi <martin@strongswan.org>
Tue, 10 Nov 2009 10:07:37 +0000 (11:07 +0100)
committerMartin Willi <martin@strongswan.org>
Thu, 12 Nov 2009 13:37:06 +0000 (13:37 +0000)
src/charon/encoding/generator.c

index e8db55a7f3eaacf55947f7ef26af7bc21320cc8c..6485da4920b94750ff80a2579f8e538ab2729d0c 100644 (file)
@@ -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);
 }