mirror of
https://github.com/strongswan/strongswan.git
synced 2025-11-28 00:00:40 -05:00
cosmetics
This commit is contained in:
parent
02f08ef910
commit
fba18c5105
@ -75,7 +75,7 @@ METHOD(pb_tnc_message_t, build, void,
|
|||||||
tls_writer_t *writer;
|
tls_writer_t *writer;
|
||||||
|
|
||||||
/* build message */
|
/* build message */
|
||||||
writer = tls_writer_create(0);
|
writer = tls_writer_create(16);
|
||||||
writer->write_data(writer, this->language_preference);
|
writer->write_data(writer, this->language_preference);
|
||||||
|
|
||||||
free(this->encoding.ptr);
|
free(this->encoding.ptr);
|
||||||
@ -94,7 +94,7 @@ METHOD(pb_tnc_message_t, process, status_t,
|
|||||||
/* process message */
|
/* process message */
|
||||||
reader = tls_reader_create(this->encoding);
|
reader = tls_reader_create(this->encoding);
|
||||||
reader->read_data(reader, this->encoding.len,
|
reader->read_data(reader, this->encoding.len,
|
||||||
&this->language_preference);
|
&this->language_preference);
|
||||||
this->language_preference = chunk_clone(this->language_preference);
|
this->language_preference = chunk_clone(this->language_preference);
|
||||||
reader->destroy(reader);
|
reader->destroy(reader);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user