--- trousers-0.3.11.2/src/tcs/tcs_caps.c.orig +++ trousers-0.3.11.2/src/tcs/tcs_caps.c @@ -149,6 +149,7 @@ { TSS_RESULT result; UINT32 subCap, rv = 0; + UINT32 manuf; if ((result = get_current_version(&p->version))) goto err; @@ -181,8 +182,9 @@ UINT32ToArray(TPM_CAP_PROP_MANUFACTURER, (BYTE *)&subCap); if ((result = get_cap_uint32(TCPA_CAP_PROPERTY, (BYTE *)&subCap, sizeof(UINT32), - (UINT32 *)&p->manufacturer))) + (UINT32 *)&manuf))) goto err; + (void) memcpy(p->manufacturer, &manuf, sizeof (UINT32)); result = get_max_auths(&(p->num_auths));