cosmetics
authorAndreas Steffen <andreas.steffen@strongswan.org>
Sun, 5 Dec 2010 14:23:18 +0000 (15:23 +0100)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Sun, 5 Dec 2010 14:23:18 +0000 (15:23 +0100)
src/libcharon/plugins/tnccs_20/messages/pb_language_preference_message.c

index 7f126d9..39a2bae 100644 (file)
@@ -75,7 +75,7 @@ METHOD(pb_tnc_message_t, build, void,
        tls_writer_t *writer;
 
        /* build message */
-       writer = tls_writer_create(0);
+       writer = tls_writer_create(16);
        writer->write_data(writer, this->language_preference);
 
        free(this->encoding.ptr);
@@ -94,7 +94,7 @@ METHOD(pb_tnc_message_t, process, status_t,
                /* process message */
                reader = tls_reader_create(this->encoding);
                reader->read_data(reader, this->encoding.len,
-                                 &this->language_preference);
+                                                                &this->language_preference);
                this->language_preference = chunk_clone(this->language_preference);
                reader->destroy(reader);
        }