diff options
author | Martin Willi <martin@revosec.ch> | 2013-01-22 14:42:06 +0100 |
---|---|---|
committer | Martin Willi <martin@revosec.ch> | 2013-01-22 14:45:56 +0100 |
commit | 8d631ebabd557b23649a4266f3bc3658f01e076c (patch) | |
tree | c35180276bc0c091255adc5e3df4255c54f2ebf5 | |
parent | 113ff1332232725cc6410b7080b5699dbdcd6c70 (diff) | |
download | strongswan-8d631ebabd557b23649a4266f3bc3658f01e076c.tar.bz2 strongswan-8d631ebabd557b23649a4266f3bc3658f01e076c.tar.xz |
Encode IETF Numeric Version Service Pack Version with two byte words
-rw-r--r-- | src/libimcv/ietf/ietf_attr_numeric_version.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/libimcv/ietf/ietf_attr_numeric_version.c b/src/libimcv/ietf/ietf_attr_numeric_version.c index d4e79cc32..797205473 100644 --- a/src/libimcv/ietf/ietf_attr_numeric_version.c +++ b/src/libimcv/ietf/ietf_attr_numeric_version.c @@ -134,8 +134,8 @@ METHOD(pa_tnc_attr_t, build, void, writer->write_uint32(writer, this->major_version); writer->write_uint32(writer, this->minor_version); writer->write_uint32(writer, this->build); - writer->write_uint32(writer, this->service_pack_major); - writer->write_uint32(writer, this->service_pack_minor); + writer->write_uint16(writer, this->service_pack_major); + writer->write_uint16(writer, this->service_pack_minor); this->value = chunk_clone(writer->get_buf(writer)); writer->destroy(writer); @@ -280,4 +280,3 @@ pa_tnc_attr_t *ietf_attr_numeric_version_create_from_data(chunk_t data) return &this->public.pa_tnc_attribute; } - |