max_attr_size is an uint32_t value
authorAndreas Steffen <andreas.steffen@strongswan.org>
Thu, 29 May 2014 11:04:30 +0000 (13:04 +0200)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Sat, 31 May 2014 18:37:57 +0000 (20:37 +0200)
src/libpts/swid/swid_error.c

index 7f7da76..7f3c344 100644 (file)
@@ -40,7 +40,7 @@ pa_tnc_attr_t* swid_error_create(swid_error_code_t code, u_int32_t request_id,
        writer->write_uint32(writer, request_id);
        if (code == TCG_SWID_RESPONSE_TOO_LARGE)
        {
-               writer->write_uint16(writer, max_attr_size);
+               writer->write_uint32(writer, max_attr_size);
        }
        if (description)
        {